I'm writing a C# Windows service that opens a text file that has a date and time column. Both of these are in CEST time in Germany. I need to know what these times are in EST. I don't know how to factor in the daylight savings time on both sides as well. Can someone please guide me with this? I have no idea how.
lsRetrievedDateTime = cellvalues[10] + " " + cellvalues[11];
ldRetrievedDateTimeCEST = DateTime.ParseExact(MyDateString, "M/dd/yyyy H:mm:ss", null);
// ldRetrievedDateTimeCEST is actually Germany time and we need to convert it to EST.