Fancy MooTools Date Picker
I've recreated this datepicker completely from scratch, using MooTools v1.2. See the demo page or fork it on github.
Note: this uses MooTools v1.11. Here are two different versions of this that people have emailed me which should work with MooTools v1.2, though I haven't tested them:
Cory Gagliardi’s version
calendar with all options
List of All Options and Defaults
Integer. Number of characters for the day names abbreviation
['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
Array. If you have a multi-language site, use this option to set it based on the user's language.
[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
Array. I'm not sure if people use calendars with different days, but there it is if you need it.
String. The script will use a regular expression to replace this with the date.
['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
Array. Set it based on the user's language.
Integer. 1 makes the week start on Monday, and 7 makes it start on Sunday
String. Only other valid choice is 'desc'. This is the direction the year dropdown will go, starting from your yearStart, and counting through your yearRange.
Integer. This how many years the dropdown list will include, starting from your yearStart setting.
Integer. Enter the four-digit year, like 1980. This will be where the dropdown list will start, and continue up or down depending on your yearOrder setting.