Пример #1
0
        public string GetFormattedTimeZone(DateTime timeNow, int userId)
        {
            var      timeZone        = new UserManagement().GetUserPreferTimeZone(userId);
            DateTime date            = GlobalAppSettings.GetCovertedTimeZone(timeNow, timeZone);
            var      formattedString = date.ToString(GlobalAppSettings.SystemSettings.DateFormat + " hh:mm:ss tt");

            return(formattedString);
        }