strtotime equivalent in .NET

后端 未结 6 1177
春和景丽
春和景丽 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:36

    I think the best way this to write extension methods to DateTime to handle your needs.

    Maybe, it can be OSS, so the community can help you to implement it.

提交回复
热议问题