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!
Remove unneeded years for date range
Re: Remove unneeded years for date range
Hi,
from my knowledge, there is no such global option.
from my knowledge, there is no such global option.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Remove unneeded years for date range
is there a table by table option?
Re: Remove unneeded years for date range
If so, what file do I mod?
Re: Remove unneeded years for date range
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.
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.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Remove unneeded years for date range
Awesome! Thanks.