时间转换问题
DateTime dt; DateTimeFormatInfo dtFormat = new System.Globalization.DateTimeFormatInfo(); dtFormat.ShortDatePattern="yy-MM-dd" ; dt=Convert.ToDateTime("04-05-06",dtFormat);
另外一种
DateTime dtStartTime=Convert.ToDateTime("2006-4-23 12:22:05"); Response.Write(dtStartTime.ToString("yyyy-MM-dd hh:mm:ss"));