public static DateTimeOffset WithTimeZone(this DateTime dateTime, TimeZoneInfo timeZoneInfo) { return(DateTimeHelper.WithTimeZone(dateTime, timeZoneInfo)); }
/// <param name="dateTime"> </param> /// <param name="timeZoneId"> Time Zone ID, See more: https://msdn.microsoft.com/en-us/library/gg154758.aspx </param> public static DateTimeOffset WithTimeZone(this DateTime dateTime, string timeZoneId) { return(DateTimeHelper.WithTimeZone(dateTime, timeZoneId)); }