Date property formatting

Vote:
 
Hi! I'm trying to remove the time from an Time/Date property when displaying it. Ie I'm using this on my page, inside an : And it displays as: "4/18/2007 10:00:00 AM", which is quite correct. However, if I want to change the formatting of the output to just display the date, not the time, how do I go about? // Peter
#12997
Mar 25, 2008 18:35
Vote:
 
You can try this: <%# String.Format("{0:yyyy/MM/dd}", Container.CurrentEventStartTime) %> Mari
#15229
Mar 25, 2008 18:46
Vote:
 
Hi. See also this FAQ: http://www.episerver.com/en/EPiServer_Knowledge_Center/FAQ_EPiServer_4/959/960/ -- Per
#15230
Mar 25, 2008 18:46