AppginiHelper - Date Picker

Topics related to AppGini plugins/add-ons go here.
Post Reply
User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

AppginiHelper - Date Picker

Post by aarlauskas » 2020-11-29 17:01

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.

pfrumkin
Veteran Member
Posts: 157
Joined: 2020-02-18 17:58
Location: Albuquerque, New Mexico USA

Re: AppginiHelper - Date Picker

Post by pfrumkin » 2020-12-07 17:30

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

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: AppginiHelper - Date Picker

Post by aarlauskas » 2020-12-07 20:44

Thanks Paul, I'll give it a try buddy. Thank You!

Arni.

Post Reply