Click here to Skip to main content
15,898,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using
C#
$("#Something").datepicker({
            minDate: new Date(2014, 0, 1)
        })


It displays date and time for default value in IE9. But i just want the date not the time.
I tried .toShortDateString() but it doesn't work.
Please help.
Posted

1 solution

Add
C#
$("#Something").datepicker({
            minDate: new Date(2014, 0, 1),
            dateFormat: 'mm/dd/yy'
        })

or whatever format you need there.

Regards,
 
Share this answer
 
Comments
dirtyshooter 5-Jun-15 5:21am    
doesnt work in IE9

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900