How can I convert the string value 2024-05-01T11:42:25.927000Z to a date and time format?

2024-05-01T11:42:25.927000Z how to covert the string value to date and time format.
2024-05-01T11:42:25.927000Z how to covert the string value to date and time format

Hi @Mohammad_Rizwan_03

 dateFormat = DateTime.ParseExact(Input, "yyyy-MM-ddTHH:mm:ss.ffffffZ", System.Globalization.CultureInfo.InvariantCulture)

Regards,

Hi @Mohammad_Rizwan_03

dateTimeString = "2024-05-01T11:42:25.927000Z"
dateTimeVariable = DateTime.ParseExact(dateTimeString, "yyyy-MM-ddTHH:mm:ss.ffffffK", System.Globalization.CultureInfo.InvariantCulture)

@lrtetala @pravallikapaluri
Thank you for the quick response and for providing me with the solution.

1 Like

DateTime.Parse(“YourDate”)
@Mohammad_Rizwan_03

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.