Is it possible to get next date of a given date in “yyyymmdd” format with default java script or jquery functions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you’ve specified jQuery UI you can use its built-in date formatter to get the required output.
The use of the regexp and
new Dateshown below is to guarantee that the vagaries of date parsing don’t affect the result.Demo at http://jsfiddle.net/alnitak/R8awH/