Custom Range of Years for Standard Date Field in Salesforce

Custom "Range of Years" for "Standard Date Field" in Salesforce

Have you ever noticed that the standard date field shows year Range to only up to 7 years? What if we want that Range to be custom as per our functionality. For that you need to use the following script :

------------------------------------------------------------------------------------------------------------------------------------


-------------------------------------------------------------------------------------------------------------------------------------

**** In var startYear=2000; var endYear=2050; mention your year Range.

VISUALFORCE PAGE :

 





































Cheers!!!

Responses

Popular Salesforce Blogs