The file is attached. To install, you'd replace the existing files...
/wire/modules/Fieldtype/FieldtypeDatetime.module
/wire/modules/Inputfield/InputfieldDatetime/ (entire directory)
...with the new ones here:
Datetime1.zip 22.08K
83 downloadsHere's what's new:
- You can now select from predefined date and/or time formats, rather than having to manually construct a PHP date format (though you can still do that too if you want to).
- It converts your date format to the equivalent javascript format, so when you select a date from the datepicker, it stays in the right format rather than changing to a YYYY-MM-DD format like that old one did.
- No more conversion issues with day-first vs. month-first dates and the datepicker.
- There is now a time picker too! If you opt to include a time component, the datepicker will include a timepicker.
- You can now choose when you want your datepicker to appear: on click (as before), on focus (new), or inline (new, always visible).
- You can now optionally specify alternate date/time output and input formats on a per-language basis. So if you need month-first dates for US users, and day-first dates for European users, no problem.
- For the date output format, you can use PHP strftime() codes if you want to. This enables you to have one date format that outputs language-specific/localized month or day names. Though if you don't need to output localized month/day names, then it's better to stick with the default date formats.
Thanks,
Ryan
Date/time picker example:
Fieldtype configuration example:
Inputfield configuration example:













