AppginiHelper - Date Picker
- aarlauskas
- Veteran Member
- Posts: 127
- Joined: 2019-04-28 18:03
- Location: Medway, UK
AppginiHelper - Date Picker
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
It's a hack, but I add the following to the tablename_dv hook
I'm not good enough at JS to be more elegant.
~Paul
Code: Select all
$html = str_replace('format: AppGini.datetimeFormat(\'dt\')', 'format: \'MM/DD/YYYY\'', $html);
$html = str_replace(' 12:00 AM', '', $html);
~Paul
- aarlauskas
- Veteran Member
- Posts: 127
- Joined: 2019-04-28 18:03
- Location: Medway, UK
Re: AppginiHelper - Date Picker
Thanks Paul, I'll give it a try buddy. Thank You!
Arni.
Arni.