This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Converts a UTC datestamp to the local timezone | |
/// </summary> | |
/// <returns>The UTC to local time zone.</returns> | |
/// <param name="dateTimeUtc">Date time UTC.</param> | |
public DateTime ConvertUTCToLocalTimeZone (DateTime dateTimeUtc) | |
{ | |
NSTimeZone sourceTimeZone = new NSTimeZone ("UTC"); | |
NSTimeZone destinationTimeZone = NSTimeZone.LocalTimeZone; | |
NSDate sourceDate = DateTimeToNativeDate (dateTimeUtc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Converts a UTC datestamp to the local timezone | |
/// </summary> | |
/// <returns>The UTC to local time zone.</returns> | |
/// <param name="dateTimeUtc">Date time UTC.</param> | |
public DateTime ConvertUTCToLocalTimeZone(DateTime dateTimeUtc) { | |
// get the UTC/GMT Time Zone | |
Java.Util.TimeZone utcGmtTimeZone = Java.Util.TimeZone.GetTimeZone ("UTC"); |