SetDate format

Discussion in 'JavaScript' started by Simpleman, Aug 27, 2008.

  1. #1
    Hi, i have a code for a CalendarControl.js i need to change the format of the date who appear in the box for mm/dd/yy instead of yy/mm/dd

    i found the place in the code
    i just need to change the year+"-"+month+"-"+day for month+"-"+day+"-"+year.

    The problem is if i try again to change the date it show the calendar not correctly.

    Ex. if i choose the august 3 1990 it will appear in the box like this 08-03-1990 but if i try to change it the calendar appear March 8.

    Here the code
     
    Simpleman, Aug 27, 2008 IP