Cool stuff!
Since I did one, too, I’ll add it just to this thread Choice is always good! Get it here: https://github.com/alexvonsiebenthal/DateAndTimePickerWeb
Disclaimer: Although it is more or less proper code, it was done in a rush. Name of weekdays and months are hard coded (but easy to change).
[h]Date and time picker for Xojo Web[/h]
Very easy to add to your projects since it uses AddHandler. Just set up a date property and a callback function (if you like, optional). Then call one of the pickers, eg.:
DIM picker AS NEW sheetDatePicker
picker.LoadDate(myDateProperty, AddressOf myCallbackFunction)
picker.Show
The date property will be changed and the callback function will be called once the pickers are closed (thus, async).
I am using Alex von Siebenthal’s codes, downloaded from https://github.com/alexvonsiebenthal/DateAndTimePickerWeb, and it’s working very well. As you may already know, any year that is divisible with 400 is not a leap year, and I have added this in my copy of the codes. Thank you Alex for sharing your well-written codes. -Simon in Music City, Nashville, Tennessee.
Correction: any year that is divisible with 100 is not a leap year, with the exception when it is divisible by 400. Examples: 1900, 2100, and 2200 are not leap years, but 2000 is.