开发者

Date format in ASP.NET

how to change the date time format 2011-09-01 09:39:23 to 2011-Aug-01 09:39:23 in asp.net.

And While displaying it should开发者_运维百科 display the second format.


Use one of the DateTime Format Strings with DateTime.ToString()

In particular, you will want:

yourDateTime.ToString("yyyy-MMM-dd hh:mm:ss");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜