Posted on: 6/9/2014 12:48:57 PM | Views : 414

Hi,
I have a data table that contains a dateTime that holds a date.  I need to format the output of the field so it displays as dd/MM/yyyy
I am using this code to display the date:
<p style="font-size:14px; margin-left:10px; margin-top:-12px">&nbsp;Start Date: <strong><%# Container.Data["SES_DATE"].ToString() %></strong></p> How can I format the date?
Do I need something like this:
<%# Convert.ToString(Container.Data["SES_DATE"]).ToString("dd/MM/yyyy") %>

Thanks

Go to the complete details ...