Käynnissä

C# TimeZoneConverter Method

I need a C# Timezone [url removed, login to view] 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 $[url removed, login to view] for this

string g = TimeZoneConverter("15 Mar 2009 03:56:20", "GMT Standard Time", "US Mountain Standard Time");

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

public string TimeZoneConverter(string myDate, string FromTimeZoneID, string ToTimeZoneID)

{

//DaylightTime changes = [url removed, login to view](??);

//[url removed, login to view];

//[url removed, login to view];

//bool IsDaylightSavingTime = [url removed, login to view](newTime)

TimeZone zone = [url removed, login to view];

string StandardName = [url removed, login to view];

CultureInfo myCulture = new CultureInfo("en-GB");

DateTime st = [url removed, login to view](myDate,[url removed, login to view]);

int Year = [url removed, login to view];

int Month = [url removed, login to view];

int Day = [url removed, login to view];

int Hour = [url removed, login to view];

int Minutes = [url removed, login to view];

int Seconds = [url removed, login to view];

DateTime oldTime = new DateTime(Year,Month,Day,Hour,Minutes,Seconds);

TimeZoneInfo timeZone1 = [url removed, login to view](FromTimeZoneID);

TimeZoneInfo timeZone2 = [url removed, login to view](ToTimeZoneID);

DateTime newTime = [url removed, login to view](oldTime, timeZone1, timeZone2);

return [url removed, login to view]();

}

Taidot: .NET

Näytä lisää: timezone converter, timezoneconverter, timezone, timezone string, time zone converter, cultureinfo timezoneinfo, cultureinfo timezone, timezone cultureinfo, time zone converter using, time zone, timezoneinfo cultureinfo, string standard, standard string, timezone con, timezone currenttimezone string, cultureinfo timezoneinfo gmt, time zone collection, timezoneconverter method net, timezone portugal, cultureinfo ttimezone, cultureinfo timezone convert, datetime timezone convert, datetime edt, find time different timezone, time zone list

About the Employer:
( 25 reviews ) London, United Kingdom

Projektin tunnus: #402101