Skip to content

Instantly share code, notes, and snippets.

@praserocking
Last active December 20, 2015 02:08
Show Gist options
  • Save praserocking/6053702 to your computer and use it in GitHub Desktop.
Save praserocking/6053702 to your computer and use it in GitHub Desktop.
window.onload = function(){
new JsDatePick({
useMode:2, //These are options available for the Date Picker! know more about them on link below!
target:"date", //ID of the textbox to which you want to apply the Date Picker
dateFormat:"%Y-%m-%d", //Date format: here I gave as YYYY-MM-DD. to change this to DD-MM-YYYY use %d-%m-%Y
limitToToday:true //Limit date to the current system date so that user cannot select the future dates
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment