Culture Error

2 posts, 0 answers
  1. Josh Coffield
    Josh Coffield avatar
    3 posts
    Member since:
    Oct 2009

    Posted 12 Oct 2009 Link to this post

    I am having a problem with date formats.  I am adding a date picker in my code behind.  When I select the date, it appears in the correct format in the textbox (10/19/2009) but when I retrieve the value through javascript it shows it in another format (2009-10-22). 

    The code to add the date picker appears below.

                RadDatePicker dPick = new RadDatePicker();
                dPick.ID = "DateField1";
                dPick.Culture = CultureInfo.GetCultureInfo("en-US");

    The javascript code I use to retrieve the value appears below:

            function TestForm()

    Am I setting the culture format incorrectly?

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 15 Oct 2009 Link to this post

    I believe the issue has to do with the way your retrieving the value in your javascript function.

    Here's one of the Telerik help topics that I think might be of use:

    Hopefully that helps.
  3. DevCraft R3 2016 release webinar banner
Back to Top