日期格式转换
using System.Globalization;
namespace Enterprise.Website
{
public partial class Ok : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//if (Request["result"] != null)
//{
// Response.Write(Convert.ToString(Request["result"]));
//}
CultureInfo MyCultureInfo = new CultureInfo("de-DE");
string MyString = "12 Juni 2008";
DateTime MyDateTime = DateTime.Parse(MyString, MyCultureInfo);
int a = MyDateTime.Month;
}
}
}