DateTime

Timeline card with two states for selecting a date + a time.

The parameters for DateTime are:

Name Type Default Values Description
format string - ‘ddd D YYYY h’, ‘YY DD MM’,etc For full reference of the supported formats : https://day.js.org/docs/en/display/format
If the available times will change based on what date is selected, its better to use the calendar card by itself first to get the day the user wants, then a BaaS, followed by a Dropdown Card with the available days.

DateTime with the date stage selected

What happens if you do not pass a dateTime?

If you don’t pass a dateTime, today will be selected by default. However, if you pass a minDate and maxDate and today does not fall between those two dates, then you won’t see today.

DateTime on the time stage selected