Thursday, 28 February 2008

Date Parsing, Addition and Display in Javascript

Despite there being a lot of articles about date parsing on the internet, I couldn't find any simple examples of how to read a user entered date (e.g. from a text box), and then manipulate it (in my case subtract a day) and then re-display it to the user. So I wrote the following function (you can view this full page by following this link).

No comments: