C#里时间转换格式-

DateTime dt = DateTime.Now;

string s = dt.ToString("yyyy-MM-dd HH-mm-ss");

posted @ 2007-05-25 22:59  jun.ma  阅读(236)  评论(0)    收藏  举报