Page 1 of 1
AppginiHelper - Date Picker
Posted: 2020-11-29 17:01
by aarlauskas
Hi, the single line date picker adds time stamp of 00:00:00 after date for users who only has Permission to view the record. It does not add the 00:00:00 if the user has Edit Permission. Is there a way to knock them zeros? The code definitely works, I don't get to select time with date picker etc.
Re: AppginiHelper - Date Picker
Posted: 2020-12-07 17:30
by pfrumkin
It's a hack, but I add the following to the tablename_dv hook
Code: Select all
$html = str_replace('format: AppGini.datetimeFormat(\'dt\')', 'format: \'MM/DD/YYYY\'', $html);
$html = str_replace(' 12:00 AM', '', $html);
I'm not good enough at JS to be more elegant.
~Paul
Re: AppginiHelper - Date Picker
Posted: 2020-12-07 20:44
by aarlauskas
Thanks Paul, I'll give it a try buddy. Thank You!
Arni.