Skip to content

pekeler/datepicky.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datepicker.js

datepicky.js is a standalone JavaScript date picker for the only date format that matters, ISO 8601 (YYYY-MM-DD).

Dependencies

None.

Supported browsers

  • IE6
  • IE7
  • IE8
  • IE9
  • FF5
  • Chrome 14
  • Safari 5
  • Safari iOS 4.3
  • Opera 11.5

How to use

Use createDatepicky() to render the date picker and bind it to an input element of type text or date. The first parameter is the id of the input element, the second parameter is the id of a div which will contain the datepicker. The third parameter is a hash for customizations, it is optional.

createDatepicky(dateInputId, pickerDivId, {});

Customizations

  • defaultDate
  • defaultMonth
  • disabledDays
  • disabledDates
  • minDate
  • maxDate
  • firstDayOfWeek
  • weekdayNames
  • monthNames
  • invalidDateClassName

Take a look at the demo to learn more about the customizations.

About

A javascript date picker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published