Disable time on datetime field
Disable time on datetime field

Hi,
I have a datetime field that uses the editor datepicker.
{
"label": "Deployment date",
"name": "date_arrived",
type:'datetime',
format: 'd-m-Y',
},
If i remove the format option only the Datepicker is visible when a client clicks on the date field. However as soon as i add the format option to format the the selected date, the hours and minutes dialog is also visible. How do i disable the Hours and minutes and only show the datepicker. Thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I think you want
format: 'D-M-Y',
(example).In Moment.JS
m
is minutes. The full list of their parameters is available here.Allan
Thanks, Allan, that worked.