Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
WebDateChooser Format
posted

How to I set the text value of the webdatechooser to return mm/dd/yyyy not m/d/yyyy.

Parents
No Data
Reply
  • 185
    posted

    You can explicitly format WebDateChooser using CultureInfo class.This can be done using the following code snippet:

    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;

     

     

Children