|
-
Aug 18th, 2009, 09:11 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Date Formats
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
-
Aug 18th, 2009, 09:23 AM
#2
Re: Date Formats
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".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|