Convert Date from 6/05/2020 format to dd/MM/YYYY format

后端 未结 5 1173
面向向阳花
面向向阳花 2020-12-03 18:24

I am facing a small issue which i am not able after trying so many things so here it goes ..... There is a text box in my page in which i am entering date and i want that da

5条回答
  •  孤城傲影
    2020-12-03 19:24

    In order to avoid any error on months / days when parsing a date, it is probably better to use DateTime.Parse or DateTime.ParseExact than ToDateTime.

    As this thread and this article pointed out.

提交回复
热议问题