How to change the format of the date in JavaScript?

advertisements

I am using one jquery date picker,
with using picker i am getting date in like this format
Friday, May 21, 2010

Now i want to add one day in this date so i think, i can only do if i change the date in exact format like 21/5/2010

I want to only convert that bcz i want to add one day to the particular date.
So what do u suggest me? How can I do that?
Can i do without converting it ?

thanks in advance....


Take a look at http://docs.jquery.com/UI/Datepicker#option-dateFormat