Parse a string containing date and time in a custom format

后端 未结 3 785
南旧
南旧 2020-11-30 09:19

I have a string of the next format \"ORDER20100322194007\", where 20100322 is a date and 194007 is a time. How to parse a string and g

3条回答
  •  無奈伤痛
    2020-11-30 10:20

    You can use DateTime.ParseExact method to specify the format that should be used while parsing.

提交回复
热议问题