Text='<%# ((DateTime)Eval("mydate")).ToString("d") %>'
For format codes, check out here-
http://authors.aspalliance.com/aspxtreme/sys/demos/datetimeformats.aspx
Here is another code snippet that might help as well.
DateTime.Now.ToString ( "yyyy/MM/dd",
System.Globalization.CultureInfo.InvariantCulture );
1 comment:
Thank's!
Post a Comment