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
Apr 05, 2007 10:34
Vote:
 
You can try this: <%# String.Format("{0:yyyy/MM/dd}", Container.CurrentEventStartTime) %> Mari
#15229
Apr 10, 2007 8:57
Vote:
 
Hi. See also this FAQ: http://www.episerver.com/en/EPiServer_Knowledge_Center/FAQ_EPiServer_4/959/960/ -- Per
#15230
Apr 11, 2007 14:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.