Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Display selected date as dd-MMM-YYYY format

Last post 07-30-2008 5:13 by ksanjeevkumar. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-28-2008 5:33

    Display selected date as dd-MMM-YYYY format

    Hi ,

      I want to display the selected date in webDateChooser control  in the TexTBox as  28-Jul-2008  format

     

    any help is appreciated.

    • Post Points: 20
  • 07-29-2008 12:39 In reply to

    Re: Display selected date as dd-MMM-YYYY format

    You change the format for the webdatechooser through the current UI Culture.  In this case, you would create a specific culture and set the Thread.CurrentCulture = specificculture

    Craig Shoemaker
    New-Media Evangelist
    Infragistics, Inc.

    Check out Pixel8
    • Post Points: 20
  • 07-30-2008 3:25 In reply to

    Re: Display selected date as dd-MMM-YYYY format

    Hi Craig,

     Can you plz  send any sample code regarding this.

     Becoz i am not using localization... just i need to change the display format of the selected value in text box of the webdatechooser control.

    Regards

    Sanjeev 

     

     

      

    • Post Points: 5
  • 07-30-2008 5:13 In reply to

    Re: Display selected date as dd-MMM-YYYY format

    Thanks Craig for the info

     

     i completed it by pasting this code in page class

     

     protected override void InitializeCulture()
            {
                CultureInfo culture = new CultureInfo("en-US");
                culture.DateTimeFormat.ShortDatePattern = "dd-MMM-yyyy";
                culture.DateTimeFormat.DateSeparator = "-";
                Thread.CurrentThread.CurrentCulture = culture;

            }  

     

    trying to implement at application level 

     

    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems