valid date check with DateTime.TryParse method

前端 未结 3 1920
旧时难觅i
旧时难觅i 2021-01-02 04:29

I am using Datetime.TryParse method to check the valid datetime. the input date string would be any string data. but is returning false as the specify date in i

3条回答
  •  孤街浪徒
    2021-01-02 04:49

    As the others said, you can use TryParseExact.

    For more informations and the use with the time, you can check the MSDN Documentation

提交回复
热议问题