.NET里面几个时间转换函数
System.DateTime.Now.ToLongDateString() 2007年10月1日
System.DateTime.Now.ToShortDateString() 2007-10-1
System.DateTime.Now.ToLongTimeString() 16:50:19
System.DateTime.Now.ToShortTimeString() 16:51
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") 此为通用
中文日期格式转英文日期格式
DateTime.Now.ToString("MMM dd, yyyy", new CultureInfo("en-us", false)); Sep 01, 2010
DateTime.Now.ToString("MMM dd, yyyy", new CultureInfo("en-us", false)); September 01, 2010
DateTime.Now.ToString("MMM dd, yyyy", new CultureInfo("en-us", false)); September 01, 2010
DateTime.Now.ToString("h:mmtt", new CultureInfo("en-us", false)); 1:22PM
DateTime.Now.ToString("h:mmt", new CultureInfo("en-us", false)); 1:22P
DateTime.Now.ToString("H:mmtt", new CultureInfo("en-us", false)); 13:22PM