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"> 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 ...