# \#gform\_date\_max\_year

**URL:** https://community.gravityforms.com/tag/gform-date-max-year/321.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Date drop down list](https://community.gravityforms.com/t/date-drop-down-list/18544)

<div class="topic-metadata">

**Author:** [@user5a0d98672ade19.6](https://community.gravityforms.com/u/user5a0d98672ade19.6)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 2:41pm UTC](https://community.gravityforms.com/t/date-drop-down-list/18544 "2024-11-25T14:41:10Z")

</div>

Hi, I want the date field not to show past dates, but only future days. Is this not possible? I already tried this code, but it didnt work: gform.addFilter( 'gform\_datepicker\_options\_pre\_init', function( optionsObj, fo…

---

## [Date dropdown year min/max \[RESOLVED\]](https://community.gravityforms.com/t/date-dropdown-year-min-max-resolved/17130)

<div class="topic-metadata">

**Author:** [@TigerLineGolf](https://community.gravityforms.com/u/TigerLineGolf)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 3:46pm UTC](https://community.gravityforms.com/t/date-dropdown-year-min-max-resolved/17130 "2024-03-24T15:46:02Z")

</div>

The following code is used to set the min and max dates in a date drop down field add\_filter( 'gform\_date\_min\_year', 'set\_min\_year' ); function set\_min\_year( $min\_year ) { return 1900; } and add\_filter( 'gform\_dat…

---

## [Insert start/end date](https://community.gravityforms.com/t/insert-start-end-date/13245)

<div class="topic-metadata">

**Author:** [@user60afc218a70b2118](https://community.gravityforms.com/u/user60afc218a70b2118)\
**Replies:** 1\
**Last updated:** [August 15, 2022, 3:42pm UTC](https://community.gravityforms.com/t/insert-start-end-date/13245 "2022-08-15T15:42:18Z")

</div>

Hello, is it possible that when you include the date field, it is not possible to select until today? example The customer has to select a date, which starts on January 1st, 1930 and can be selected until today (August…

---

## [Date input fiels show big arrow](https://community.gravityforms.com/t/date-input-fiels-show-big-arrow/10537)

<div class="topic-metadata">

**Author:** [@user61086a4ec00f9639](https://community.gravityforms.com/u/user61086a4ec00f9639)\
**Replies:** 3\
**Last updated:** [August 18, 2021, 3:59pm UTC](https://community.gravityforms.com/t/date-input-fiels-show-big-arrow/10537 "2021-08-18T15:59:08Z")

</div>

Hello, earlier I asked about date format, now my friend allowed to check form more, and sometimes I getting I think errors, sometime I see wery big selection arrows in date field, here is a picture Imgur: The magic of th…

---

## [In Dropdown format I need change max date range to 2050](https://community.gravityforms.com/t/in-dropdown-format-i-need-change-max-date-range-to-2050/10492)

<div class="topic-metadata">

**Author:** [@user61086a4ec00f9639](https://community.gravityforms.com/u/user61086a4ec00f9639)\
**Replies:** 2\
**Last updated:** [August 3, 2021, 4:53pm UTC](https://community.gravityforms.com/t/in-dropdown-format-i-need-change-max-date-range-to-2050/10492 "2021-08-03T16:53:06Z")

</div>

Hello, I want to buy but need to know does possible to change year in date/tame place. I saw on my friends website that it is limited, how to add more years to chose? i need 2050 until I need this in Dropdown format? I …

---

## [Display of the date drop down field](https://community.gravityforms.com/t/display-of-the-date-drop-down-field/1604)

<div class="topic-metadata">

**Author:** [@user5bf867351ecce8.9](https://community.gravityforms.com/u/user5bf867351ecce8.9)\
**Replies:** 2\
**Last updated:** [April 23, 2019, 4:46pm UTC](https://community.gravityforms.com/t/display-of-the-date-drop-down-field/1604 "2019-04-23T16:46:46Z")

</div>

Hi, I have two questions relating to the date drop down field. I have setup the date field with a minimum date of 2019 and a maximum date of 2024 using: add\_filter( ‘gform\_date\_min\_year’, ‘set\_min\_year’ ) and add\_fil…
