An easy to use & versatile javascript date/time selector for use in web pages. As javascript is primarily a client-side scripting language, it has two major advantages over date selectors written with server-side languages like perl or php: Firstly, there is much less complication in generating dates and times that correspond to that set on the user machine, rather than that set at the host server (which could be anywhere in the world, and in any case, is often innaccurate). Secondly, there is no need to render a new page each time the date is changed, which can be tiresome. Date changes made by the user are reflected instantly with no posting of values.
A javascript object has been developed to take all of the donkey work out of creating a useable date selector. It has one very unconventional feature that has facilitated its creation (as you will see). This object has been given the simple name dateSelector.
To use the dateSelector object, you must first include the file dateselector.js in the <head> section of your html code (right click on the file name to download it). Include the file in your code like this: