I need a C# Timezone [login to view URL] that will accept a Date, Current TimeZone and Actual Time, it will return a string.
Make sure you treat the IsDaylight feature (the tricky part)
Please USE C# 3.5 because it supports the feature, pls test well before you deliver. I will check it
My budget is $40.00 for this
string g = TimeZoneConverter("15 Mar 2009 03:56:20", "GMT Standard Time", "US Mountain Standard Time");
using [login to view URL];
using [login to view URL];
using [login to view URL];
public string TimeZoneConverter(string myDate, string FromTimeZoneID, string ToTimeZoneID)
{
//DaylightTime changes = [login to view URL](??);
//[login to view URL];
//[login to view URL];
//bool IsDaylightSavingTime = [login to view URL](newTime)
TimeZone zone = [login to view URL];
string StandardName = [login to view URL];
CultureInfo myCulture = new CultureInfo("en-GB");
DateTime st = [login to view URL](myDate,[login to view URL]);
int Year = [login to view URL];
int Month = [login to view URL];
int Day = [login to view URL];
int Hour = [login to view URL];
int Minutes = [login to view URL];
int Seconds = [login to view URL];
DateTime oldTime = new DateTime(Year,Month,Day,Hour,Minutes,Seconds);
TimeZoneInfo timeZone1 = [login to view URL](FromTimeZoneID);
TimeZoneInfo timeZone2 = [login to view URL](ToTimeZoneID);
DateTime newTime = [login to view URL](oldTime, timeZone1, timeZone2);
return [login to view URL]();
}