strtotime equivalent in .NET

后端 未结 6 1181
春和景丽
春和景丽 2020-12-06 08:04

Is there an equivalent of PHP\'s strtotime() function working on .NET Framework. I\'m talking about it\'s capacity to handle strings likes:

  • strtot
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 08:50

    DateTime date = new DateTime(10,10,2010)
    Response.Write(date.ToShortDateTimeString());
    Response.Write(date.Year);
    date = DateTime.Now;
    

    etc etc

提交回复
热议问题