以前用日期作为字符串时,我这么写: string sDate = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString() 其实,只要下面一句就可以了 ^o^ 您可能感兴趣的文章:asp.net下日期加减的方法ASP.NET如何获取