Sometime you may need to use the jQuery calender in some project. you writes the following code:
jQuery( ".in_time" ).datepicker();
and it gives you:

1- if you need to show all the dates which are previous to the current date:
If todays date is (11-Dec-2013)
jQuery( ".in_time" ).datepicker({ maxDate: 0 });
It will output you

2- if you need to format the date you can use:
If todays date is (12-Dec-2013)
jQuery( ".in_time" ).datepicker({ maxDate: -1, dateFormat: 'dd-mm-yy' });
It will output you

0 Comment(s)