zoukankan      html  css  js  c++  java
  • 日期格式转换

    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;

            }
        }
    }

  • 相关阅读:
    Mysql优化之Explain查询计划查看
    map转listmap
    代码大全
    cas
    日志
    xml模板
    springboot
    日志
    spring应用
    拆分表中sheet
  • 原文地址:https://www.cnblogs.com/hqbird/p/1332208.html
Copyright © 2011-2022 走看看