Edit Date Format

wildmanmatt

New member
You are using DaDaBIK version 10.6-Manarola enterprise
System info
PHP Version: 7.4.16
mysql version: 10.3.29-MariaDB-cll-lve
Web server: LiteSpeed
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Hi,

I have set my date format as latin ($date_format = 'latin';) and it displays correctly in results and views. However, the edit field with the datepicker shows as mm-dd-yyyy rather than dd-mm-yyyy as it should in Latin format.

I can't work out how to setup the date edit box correctly to be able to type in the date in the format dd-mm-yyyy - is this possible?
 

eugenio

Administrator
Staff member
Hi,
you have to change
$date_format_edit and $date_time_format_edit as well

Best,
 

wildmanmatt

New member
Perfect, that did it. Thank you!

For reference, I set them as this:

$date_format_edit = 'j/m/Y';
$date_time_format_edit = 'j/m/Y';
 

wildmanmatt

New member
Is there a way to allow typing in the date box as well as the datepicker? It seems that the datepicker disables the typing in the box?

Thanks,

Matt
 

eugenio

Administrator
Staff member
Maybe could change $date_picker_type in your config_custom file according to $_GET['tablename'].
If you choose the jquery picker, however, $date_format_edit and $date_time_format_edit don't work.

Best,
 
Top