Convert UTC string to UTC DateTime

Hi Experts,

How do I convert a string of a UTC time "22 Feb 2009 14:00:00" to a UTC DateTime. If I use the TimeZoneInfo.ConvertTimeFromUtc() method this subtracts the offset again. I want the time to remain the same but be of UTC DateTime type.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Praveen VenuConnect With a Mentor Technical Project ManagerCommented:
Have you tried this?
Dim str As String = "22 Feb 2009 14:00:00"
Dim dt As DateTime = CDate(str)

Open in new window

All Courses

From novice to tech pro — start learning today.