To format infragistics calendar control
-
Hai all I am using infragistics calendar control , i need to format the selected calendar date to "dd/MMM/yyyy" . Can anyone help me . Thank you
I was curious as well so did some digging here: WebDateChooser Format - Infragistics Community[^]
this.WebDateChooser1.Format = Infragistics.WebUI.WebSchedule.DateFormat.Short;
System.Globalization.CultureInfo c = new System.Globalization.CultureInfo("en-US");
c.DateTimeFormat.DateSeparator = "/";c.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy";
this.WebDateChooser1.CalendarLayout.Culture = c;This quote is also worth noting: Unfortunately WebDateChooser supports only "3 fields" format and MMM/MMMM is not supported in edit mode, but only M/MM.
-
I was curious as well so did some digging here: WebDateChooser Format - Infragistics Community[^]
this.WebDateChooser1.Format = Infragistics.WebUI.WebSchedule.DateFormat.Short;
System.Globalization.CultureInfo c = new System.Globalization.CultureInfo("en-US");
c.DateTimeFormat.DateSeparator = "/";c.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy";
this.WebDateChooser1.CalendarLayout.Culture = c;This quote is also worth noting: Unfortunately WebDateChooser supports only "3 fields" format and MMM/MMMM is not supported in edit mode, but only M/MM.
-
Sorry, forgot to note obviously to change
c.DateTimeFormat.ShortDatePattern = "dd/MMM/yyyy";