# Datepicker
# Demo
<datepicker value="2019-08-31 23:55" mode="datetime"></datepicker>
# Props
name | Type
Description
The name attribute of the input element
|
value | Type
Description
Initial value, it needs to have a format such as 2017-03-01 or 2017-03-01 12:10 |
id | Type
Description
The id attribute of the input element
|
container-class | Type
Description
The class/classes of the container element |
formatter | Type Default
Description
Callback used for formatting the date input.
It receives current date in "YYYY-MM-DD (HH:MM)" format as a parameter.
Can be easily used with
|
parser | Type Default
Description
Callback used for parsing date from text input.
It receives date locale format and parses it out to "YYYY-MM-DD (HH:MM)".
Can be easily used with
|
use-am | Type Default
Description
If true the hour will be displayed in AM/PM format |
days-of-week | Type Default
Description
Days of the week |
highlight-today | Type Default
Description
Highlights today in the calendar |
icons | Type Default
Description
Icons for UI buttons |
mode | Type Default
Description
Mode can be set to date, datetime or time |
months | Type Default
Description
Month names |
months-short | Type Default
Description
Short month names, used on the month selector view |
placeholder | Type
Description
The placeholder attribute of the input element
|
translations | Type Default
Description
Allows to override tooltips with messages in another language |
disabled | Type Default
Description
Disable input |
timezones | Type Default
Description
Timezones for timezones selector |
momentLocale | Type Default
Description
Date locale to be used by moment.js library |
momentDateFormat | Type Default
Description
Date format to be used by moment.js library |
momentTimeFormat | Type Default
Description
Time format to be used by moment.js library |
# Events
changed | Parameters Description Emitted when the date is changed |
← Introduction Dropdown →