Hello,
How can I get date in the format 2015-09-23T10:24:22.940+01:00 as a datetime and not string, in c#.
Any help will be appreciated.
Hi,
Try below code.
C#
DateTime dt = DateTime.Parse("2015-09-23T10:24:22.940+01:00"); string date = dt.ToShortDateString(); string dateInMonthDayYear = dt.ToString("MM/dd/yyyy");
I hope this will help you out.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.