Page 1 of 1

Remove unneeded years for date range

Posted: 2024-07-29 00:36
by utony
I am looking for a global option to remove the date range from 1900 to 2020, from date pickers. Having dates going back so far is a nuance. Does anyone know a way to remove all dates for all tables that you date range, removing 1900 to 2020???

Thanks!

Re: Remove unneeded years for date range

Posted: 2024-07-29 20:30
by pbottcher
Hi,

from my knowledge, there is no such global option.

Re: Remove unneeded years for date range

Posted: 2024-07-30 00:58
by utony
is there a table by table option?

Re: Remove unneeded years for date range

Posted: 2024-07-30 00:59
by utony
If so, what file do I mod?

Re: Remove unneeded years for date range

Posted: 2024-08-03 21:17
by pbottcher
Hi,

what you can try is to add to the __global.php
define('TABLENAME.FIELDNAME.MinYear', STARTYEAR);

where
TABLENAME is the name where you have the datefield
FIELDNAME is the name of the field you want to modify
STARTYEAR is the year you want to start with.

Hope that helps.

Re: Remove unneeded years for date range

Posted: 2024-08-04 13:26
by utony
Awesome! Thanks.