Parsing a Date Like “Wednesday 13th January 2010” with .NET

前端 未结 7 1699
孤城傲影
孤城傲影 2021-01-07 19:49

How can I convert the following strings to a System.DateTime object?

Wednesday 13th January 2010
Thursday 21st January 2010
Wednesday 3rd February 2010

相关标签:
7条回答
  • 2021-01-07 20:37

    I remembered this post on using MGrammar to parse a lot of different ways to express dates and times. It doesn't exactly answer your question, but it might serve as a useful base depending on what your ultimate goal is.

    0 讨论(0)
提交回复
热议问题