Hey,
While using the following code i need to convert a full date into the 2 digit Month code and 4 digit year.
<%#DataBinder.Eval(Container.DataItem, "PublicationDate" ,"{0:d})%>
Anyone know what to 2 format codes are?
Pino
Printable View
Hey,
While using the following code i need to convert a full date into the 2 digit Month code and 4 digit year.
<%#DataBinder.Eval(Container.DataItem, "PublicationDate" ,"{0:d})%>
Anyone know what to 2 format codes are?
Pino
MSDN has all the information you need regarding standard and custom date format strings.
http://social.msdn.microsoft.com/Sea...20strings&ac=3
A two-digit month is MM and a four-digit year is yyyy. Put the two together in whatever combination you like, e.g. "MM/yyyy".