ted devito datepicker question
I can't figure out how to change the format for this and there is nothing really in the sparse documentation, which I find bizarre since it is surely one of the most important things when dealing with date inputs.
I have:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#event_start").simpleDatepicker();
});
</script>
http://teddevito.com/demos/calendar.php
I don't know what he means by:
allows you to easil开发者_Go百科y change the output format (look for "jQuery.fn.simpleDatepicker.formatOutput = function (dateObj) {...")
If anyone can point out what I'm not seeing I would be massively grateful, i really need to change this format!
He is referring to this code which is in cal.js:
jQuery.fn.simpleDatepicker.formatOutput = function (dateObj) {
return (dateObj.getMonth() + 1) + "/" + dateObj.getDate() + "/" + dateObj.getFullYear();};
That's the code you need to change.
精彩评论