Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Formatting jQuery date picker

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 432
    Comment on it

    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:

    Free Web Proxy

    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

    Free Web Proxy

    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

    Free Web Proxy

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: