Skip to content

Instantly share code, notes, and snippets.

@kingpabel
Created March 30, 2015 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingpabel/552ded194565992f4bb4 to your computer and use it in GitHub Desktop.
Save kingpabel/552ded194565992f4bb4 to your computer and use it in GitHub Desktop.
<input type="text" id="basic_example_1">
//for date and timepicker
<script>
$('#basic_example_1').datetimepicker();
</script>
//for only timepicker
<script>
$('#basic_example_1').timepicker();
</script>
//datetimepicker with time format
<script>
$('#basic_example_1').datetimepicker({
timeFormat: "hh:mm tt"
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment