Last updated Dec 10th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
$292 per month—let's make that $500!Learn more
What is input.datepicker?¶
Add a datepicker to a form quickly and easily using this snippet.
Example for input.datepicker:
||The id to assign to the input box.||>0.0.1|
||The name to assign to the input box.||>0.0.1|
||The value to assign to the input box.||>0.0.1|
||Enter "1" to add year and month drop down to the date picker.||>0.0.1|
||Add year and month drop down to the date picker.||>0.0.1|
||Set the minimum date to use.||>0.0.1|
||Set the maximum date that can be used.||>0.0.1|
||The method the calendar is displayed.||show||>0.0.1|
The date can be formatted in several ways, below are a few examples:
- d M, y
- d MM, y
- DD, d MM, yy
There are several different animations available:
- show (default)