Last active
December 20, 2015 02:08
-
-
Save praserocking/6053702 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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