Rock.Web.UI.Controls.DateTimeField.DateTimeField C# (CSharp) Method

DateTimeField() public method

Initializes a new instance of the DateTimeField class.
public DateTimeField ( ) : System
return System
        public DateTimeField()
            : base()
        {
            // Let the Header be left aligned (that's how Bootstrap wants it), but have the item be right-aligned
            this.ItemStyle.HorizontalAlign = HorizontalAlign.Right;
            this.DataFormatString = "{0:g}";
        }