How to configure datepicker in 5.7?
Permalink
Hello
I need to configure the datepicker to display date starting from Monday, date format dd/mm/yy and set default language.
I read several thread about it but I am having troubles setting it to work.
In which file should I insert the code? previously it was on site.php which in 5.7 is gone
define('DATE_APP_DATE_PICKER', 'yy-m-d');
define('DATE_FORM_HELPER_FORMAT_HOUR', '24');
define('SITE_LOCALE', 'it_IT');
Simoneast suggested to us
$('.ccm-input-date.hasDatepicker').datepicker('option', 'dateFormat' ,'d M yy');
but where should it go? I am using Equinox template
Thanks
I need to configure the datepicker to display date starting from Monday, date format dd/mm/yy and set default language.
I read several thread about it but I am having troubles setting it to work.
In which file should I insert the code? previously it was on site.php which in 5.7 is gone
define('DATE_APP_DATE_PICKER', 'yy-m-d');
define('DATE_FORM_HELPER_FORMAT_HOUR', '24');
define('SITE_LOCALE', 'it_IT');
Simoneast suggested to us
$('.ccm-input-date.hasDatepicker').datepicker('option', 'dateFormat' ,'d M yy');
but where should it go? I am using Equinox template
Thanks