GetLocalTime

Returns a localized date and time based on input parameters.

public DateTime GetLocalTime(DateTime <UtcDateTime>, TimeZoneName <LocalizedTimeZone>)
public DateTime GetLocalTime(DateTime <UtcDateTime>, string <LocalizedTimeZone>)

Parameters:

DateTime <UtcDateTime> DateTime value to localize
TimeZoneName <LocalizedTimeZone> TimeZone to localize to
string <LocalizedTimeZone> TimeZone to localize to

Example:

DateTime myLocalizedTime = MyWakesUtilities.GetLocalTime(DateTime.UtcNow, TimeZoneName.UTC_plus_400_Abu_Dhabi_Muscat);

Returned Type: DateTime

Returns a DateTime value containing the localized date and time as requested.

Terms Of Use | Privacy Statement | Company info
  • © Cedac Sistemi srl
  • Head office: Via Toscana, 3 40035 Castiglione dei Pepoli (Italy) Tel.: +39 0534-93811 Fax: +39 0534-93899
  • Branch office: Via del Lavoro, 47 40033 Casalecchio di Reno (Italy)
  • Branch office: Via Parini, 1 40033 Casalecchio di Reno (Italy)
  • Share capital Euro 26,000.00 - Company Register of Bologna / VAT no / fiscal code 01695261204