Kentico - Display Custom Date Format with Date/Time selector


/ Published in: ASP
Save to your folder(s)

You don't modify the CMSDesk in order to display only the date or only the time. You do it through the aspx control.

http://authors.aspalliance.com/aspxtreme/sys/globalization/demos/DateTimeFormatInfoGetAllDateTimePatterns.aspx


Copy this code and paste it in your HTML
  1. <%# Eval("date", "{0:MMMM d, yyyy}") %>
  2.  
  3. <%#Eval("PostOn", "{0:MM/dd/yyyy}") %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.