Articles in this section
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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied