I know how to do this in php with date() and mktime() functions, but have no idea how to accomplish the same thing in javascript...
function incr_date(date_str){
//...magic here
return next_date_str;
}
var date_str = '2011-02-28';
console.log( incr_date(date_str) ); //want to output "2011-03-01"
is this even possible with js?
If you are using jQuery & jQuery UI then use the following:
You can parse and format any way you want, and most importantly you will not need a new function in your JS Library.