Skip to content

Select particular Dates(From date and To date) using JavaScript. πŸ“† πŸ“…

Notifications You must be signed in to change notification settings

baladkb/calendarDateSelector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

calendarDateSelector

Select particular Dates(From date and To date) using JavaScript.

CalendarDateSelector is a particular date selector listed below for From and To date

  • Today
  • Yesterday
  • Last Week
  • Last Month
  • Last 7 Days
  • Last 30 Days

Version 1.0.0

Steps

First : Include siv.js in HTML file

<script type="text/javascript" src="siv.js"></script>

Second : Include below code in HTML file

<select  onchange="javascript:DateSelector.selectFromToDates();" id="selectDatesId">
			<option value="Select">Date Select</option>
			<option value="0">Today</option>
			<option value="1">Yesterday</option>
			<option value="2">Last Week</option>
			<option value="3">Last Month</option>
			<option value="4">Last 7 Days</option>
			<option value="5">Last 30 Days</option>
		</select>
From Date : <input type="text" name="" id="calendar_date_selector_field_instance0" 
		size="11" value="" readonly="readonly" >
To Date   : <input type="text" name="" id="calendar_date_selector_field_instance1" 
		size="11" value="" readonly="readonly">

Demo

Demo on JSFiddle

About

Select particular Dates(From date and To date) using JavaScript. πŸ“† πŸ“…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published