0

I have date in sting object in following format.

dd/mm/yyyy

I want to change it in mm/dd/yyyy in jquery.

any suggestions?

would be grateful for help...

1
  • Do you use any jquery plugin to handle the date format?
    – SG 86
    Apr 11, 2012 at 13:09

1 Answer 1

4

What about:

var mydate = 'dd/mm/yyyy'.split('/'),
    newdate = mydate[1]+'/'+mydate[0]+'/'+mydate[2];
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.