Change date range in datepicker

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
spvance
Posts: 3
Joined: 2014-09-26 12:15

Change date range in datepicker

Post by spvance » 2014-09-27 00:09

In an older version of AppGini I was able to change the starting date from 1900 to 1800 by simply changing the number in datalist.php. In 5.30, things have changed. I found the 1900 in date_combo.class.php, but changing it did nothing. Does anyone have a suggestion?

KSan
AppGini Super Hero
AppGini Super Hero
Posts: 252
Joined: 2013-01-08 20:17

Re: Change date range in datepicker

Post by KSan » 2014-09-27 03:26

I would love to know as well. I capture the date of birth using the datepicker and my users give me lots of 'constructive feedback' about 1900...

jinxy45
Posts: 12
Joined: 2014-09-09 11:20

Re: Change date range in datepicker

Post by jinxy45 » 2014-09-28 09:52

I changed mine from 1900 to 2007 in *****_dml.php
search for MinYear

spvance
Posts: 3
Joined: 2014-09-26 12:15

Re: Change date range in datepicker

Post by spvance » 2014-09-28 23:12

Thanks.... When calling up the older script in 5.30, the date fields were also converted to varchar. I've got to spend more time working with the program. :-)

spvance
Posts: 3
Joined: 2014-09-26 12:15

Re: Change date range in datepicker

Post by spvance » 2014-09-28 23:26

Oops!! 5.30 did not change the field to varchar... done by another person trying to fix the problem.

KSan
AppGini Super Hero
AppGini Super Hero
Posts: 252
Joined: 2013-01-08 20:17

Re: Change date range in datepicker

Post by KSan » 2014-09-30 20:47

@jinxy45, super.!!! Thanks much for sharing.

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: Change date range in datepicker

Post by SkayyHH » 2023-04-12 15:52

Hi,

does anyone know of a way to adjust MinYear via a hook entry?

*****_dml.php are always overwritten.

Thank you very much,

Kai

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: Change date range in datepicker

Post by SkayyHH » 2023-04-12 16:16

... or even better how to limit the input to dates >= today :-)

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Change date range in datepicker

Post by baudwalker » 2023-04-12 23:34

Set the default to "1"
Attachments
Capture.PNG
Capture.PNG (13.26 KiB) Viewed 1824 times

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: Change date range in datepicker

Post by SkayyHH » 2023-04-14 06:44

Hi, thanks very much! That gives me the current date as default. But sorry - what I'm looking for is a way to limit the range of year numbers using hooks. Best regards!

Post Reply