Narendra Singh
Monday, 5 February 2018
Convert string to Date Time Format MM/DD/YYYY HH:MM:SS TT using C#
string date = "12/21/2017 7:46:30 PM";
DateTime dateResult = DateTime.ParseExact(date, "M/d/yyyy h:m:s tt", CultureInfo.CurrentCulture);
Result: {21-12-2017 19:46:30}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment