Skip to content

hxmwr/datepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Simple simulation of the native datepicker in the webkit browser, and it is still lack some of features, in-complete functions etc. But it avoid an bug on the end of the scroll animation and adjust to the correct day when meet the leap year.

Version

0.0.1

Requirements

  • browser with webkit core
  • zepto library

Usage

var dp = $('#container').DatePicker();
// get 
var dt = dp.val();
// set 
dp.val('10/2/2017'); // receive an argument format same as native Date.