protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     if (!String.IsNullOrEmpty(CssClass))
     {
         lblDate.CssClass = CssClass;
     }
     var objUserTime = new UserTime();
     if (!String.IsNullOrEmpty(DateFormat))
     {
         lblDate.Text = objUserTime.CurrentUserTime.ToString(DateFormat);
     }
     else
     {
         lblDate.Text = objUserTime.CurrentUserTime.ToLongDateString();
     }
 }
        protected void Page_Load( Object sender, EventArgs e )
        {
            // public attributes
            if( !String.IsNullOrEmpty(CssClass) )
            {
                lblDate.CssClass = CssClass;
            }

            UserTime objUserTime = new UserTime();
            if( !String.IsNullOrEmpty(DateFormat) )
            {
                lblDate.Text = string.Format(DateFormat, objUserTime.CurrentUserTime);
            }
            else
            {
                lblDate.Text = objUserTime.CurrentUserTime.ToLongDateString();
            }
        }