New custom field type: time/date

Started by Gruffen, July 08, 2011, 11:14:52 AM

Previous topic - Next topic

Gruffen

Would be pretty nice to be able to provide a time/date selector as a custom field, perhaps even with a nice UI on top rather than expecting dates/times to be entered manually.

Labradoodle-360


tfs

I do like it as an idea, though it scares me because I've never seen a GUI date picker in an SMF mod before... or even in SMF.

So... in the event that there's not a GUI date picker available, I wonder if it wouldn't make as much sense to just make an entry mask for the existing text field type?  Allow the admin to specify a date mask such as "mm/dd/yyyy" for standard us character dates, etc.  That would kill several birds with one stone.  For instance, there could be a phone mask "(nnn)nnn-nnnn" or a social security number mask "nnn-nn-nnnn" etc.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

SleePy

Well the date isn't an issue for GUI.  Its the time.
Date commonly uses a little calendar icon that pops up a calendar (via js) and you can click through months or jump years.
Jeremy D — Spare-Developer

Labradoodle-360

Yeah, jQuery UI has a very nice Calendar func.