1、我们经常要用到字符格式转成日期格式:

            string da1 = "2013-03-29 17:20"; //string格式有要求,必须是yyyy-MM-dd hh:mm:ss
            Console.WriteLine(Convert.ToDateTime(da1));

结果:2013/3/29 17:20:00

 

相关文章:

  • 2021-10-16
  • 2021-04-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2021-10-07
  • 2021-05-21
  • 2021-07-12
  • 2021-12-22
  • 2022-02-19
  • 2021-07-31
相关资源
相似解决方案