Does anyone have a TextField for Dates? I’m really looking for a WebTextField for Dates though, but I could adapt it.
I’d like it to:
- Validate the Date Entered.
- Have a property or something to make easy access to getting or setting it as an SQLDate, but show as a localized date.
If not, I’ll create one and share it.
Look in the WebSDK folder. There’s an example that lets you select a date from a calendar.
I created a WebTextFieldForDate class that’s subclassed from WebTextFieldDate. It has a method to init itself from a SQLDate, will check for a valid date or revert, and shows a four digit year.
I’m kinda scared sharing this, but I’d LOVE some feedback to make it better and tight.
http://CampSoftware.com/files/LongTerm/WebTextFieldForDate.xojo_binary_code.zip