I have got a string which is maybe date = "10/08/2011"; English time style.
Its a plain string, so I need to be able to add 1 or 2 days to it.
I have tried a few things but can’t work it out as I am normally a PHP guy not JavaScript.
Any help is greatly appreciated.
Thanks
Lee
UPDATE
Why does this seem to be so hard, i’ve been stuck on this for an hour now….. I want to give the code a plain string which is mm/dd/yyyy – 10/08/2011 and i want back something like 11/08/2011
Why so hard ?? this is why i hate javascript and prefer PHP 🙁
It’s not all that complex:
if you really want it simple – without using the Date Object:
Here’s a small function to convert a date(-time) string to a Date: