string datetime = " ";
datetime=System.DateTime.Now.ToString( "dd-MMMM-yyyy ");
Response.Write(datetime);
Response.End();
这样显示的是29-一月-2007。
我想让他显示为29-January-2007 应该如何改?
谢谢
------解决方案--------------------------------------------------------
string datetime = " "; datetime=System.DateTime.Now.ToString( "dd-MMMM-yyyy ",System.Globalization.DateTimeFormatInfo.InvariantInfo); Response.Write(datetime); Response.End();