Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Only displaying Date not Time in Transformation View modes: 
User avatar
Member
Member
paul.truman-sunmed.co - 9/3/2012 4:58:16 AM
   
Only displaying Date not Time in Transformation
Hey, I'm trying to just display the date (and not the time) in a transformation for %# Eval("EventDate") %>.

I'm guessing that I need to use <%# FormatDateTime(DateTime.Now) %> but I'm not sure how to use it. Could somebody explain to me how to integrate this into the value please?

User avatar
Member
Member
kentico_michal - 9/4/2012 2:03:53 AM
   
RE:Only displaying Date not Time in Transformation
Hi,

You can use the GetDateTime method which returns formatted date-time value from the specified date-time field in the given format, such as:

<%# GetDateTime("NewsReleaseDate", "MM/dd/yyyy HH:mm") %>

Best regards,
Michal Legen