I have a System.DateTime
which is already in a specific timezone but does not specify a DateTime.Kind
, and a string that represents an IANA timezone. I want to convert this to a NodaTime.ZonedDateTime
.
For example:
var original = new DateTime(2016, 1, 1, 12, 0, 0);
var timezone = "America/Chicago";
I want a ZonedDateTime
that represents 01/01/2016 - 12PM in Chicago time. How do I do this?