EE plugin to dynamically generated selects for months, days, and years.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
system/expressionengine/third_party/vl_date_selects
README.textile

README.textile

Date Selects

Return select options for months, days, and years.

Example Usage:

{exp:vl_date_selects start_year_offset="50" end_year_offset="21"}
	<label for="month">Month</label>
	<select name="month" id="month">
		{months}
	</select>
	
	<label for="day">Day</label>
	<select name="day" id="day">
		{days}
	</select>
	
	<label for="year">Year</label>
	<select name="year" id="year">
		{years}
	</select>
{/exp:vl_date_selects}

Parameters:

  • end_year_offset: The number of years from the current year for the end range of years. If not specified, the current year will be used.
  • start_year_offset: The number of years from the calculated end year for the start range of years. If not specified, the start of the range will be 100 years less than the calculated end year.