private string GetStrDateTime(DateTime datetime) { string strFormat = "yyyy/MM/dd a\\t HH:mm:ss"; string strTime = String.Concat("(", CommonFunc.GetTimeZoneHour(TimeZoneId), "):\t", datetime.ToString(strFormat), "\r\n", "Local:\t", CommonFunc.ConvertDateTime2Local(TimeZoneId, datetime).ToString(strFormat)); return(strTime); }
private void UpdateClock() { label_timezone.Content = "UTC " + CommonFunc.GetTimeZoneHour(GlobalVar._timezoneId); grid_clock.ToolTip = CommonFunc.GetTimeZoneDisplayName(GlobalVar._timezoneId); }