Try our conversational search powered by Generative AI!

Date property formatting

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
Apr 05, 2007 10:34
You can try this: <%# String.Format("{0:yyyy/MM/dd}", Container.CurrentEventStartTime) %> Mari
Apr 10, 2007 8:57
Hi. See also this FAQ: -- Per
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.