How to convert a DateTime object to a string in C#
The ToString()
method of the DateTime
class is used to convert a DateTime
date object to string format. The method takes a date format string that specifies the required string representation.
The syntax of the ToString
method is:
12/11/2019 22:45:12
0 Comments
Thanks for Commenting on our blogs, we will revert back with answer of your query.
EmojiThanks & Regards
Sonu Yadav