If you wish to hide the seconds part, you could do so by editing the tablename_dv hook. Open the generated hooks/tablename_dv.php file in a text editor (where tablename is the name of the concerned table) and look for the dv function, then add this line inside it:
$html = str_replace(‘showSeconds: true’, ‘showSeconds: false’, $html);
$html = str_replace('showSeconds: true', 'showSeconds: false', $html);
The method described above works only for time fields. For datetime fields, try adding the following code to the file hooks/tablename-dv.js
(where tablename is the name of the concerned table — create that file if it’s not already there):
The method described above works only for time fields. For datetime fields, try adding the following code to the file hooks/tablename-dv.js
(where tablename is the name of the concerned table — create that file if it’s not already there):
$j(function() {
$j('#datetimefield').parents('.input-group')
.datetimepicker(
'format',
AppGini.datetimeFormat('dt').replace(/:ss/, '')
);
})