protected string getChatDate(object obj)
        {
            string result = "";

            DateTime datetime = Convert.ToDateTime(obj);

            datetime = UcDateTime.GetUserLocalDateTime(datetime, this.UcPage.TimeZone);

            result = "(" + datetime.ToShortDateString() + ")";
            return(result);
        }
        protected String format = UcFormats.UcFormatProfileDateTime; //"{0:dd-MMM-yyyy [HH:mm]}";
        protected string formatDateTime(object obj)
        {
            string result = "";

            if ((obj != null) && (obj is DateTime))
            {
                DateTime utcTime = Convert.ToDateTime(obj);
                //DateTime localTime = utcTime;
                //if (this.UcPage.TimeZone != "")
                //{
                //    TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById(this.UcPage.TimeZone);
                //    localTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, tzi);
                //}

                DateTime localTime = UcDateTime.GetUserLocalDateTime(utcTime, this.UcPage.TimeZone);

                result = localTime.ToString(this.format);
            }

            return(result);
        }