Category / Section
How to set the DateTime format for the DropDownCalendar control in template column of GGC?
1 min read
You can access the Calendar control object and set the custom format, say "MM/dd/yyyy" and also set the format to DateTimeFormatType.CustomString to apply the custom formats while creating the template itself.
Please refer the below code snippet which illustrates this.
C#
Syncfusion.Web.UI.WebControls.Shared.DropDownCalendarControl dropdown = new
DropDownCalendarControl();
dropdown.CustomFormat="MM/dd/yyyy";
dropdown.Format = DateTimeFormatType.CustomString;
VB
Dim dropdown As Syncfusion.Web.UI.WebControls.Shared.DropDownCalendarControl = New DropDownCalendarControl()
dropdown.CustomFormat="MM/dd/yy"
dropdown.Format = DateTimeFormatType.CustomString