javascript - how to make jquery calendar not to pick current date from system -


i have wrong system date set on system , jquery calendar picking current date system's current date .. how make display current date internet .can please resolve issue

please try code, hope should helpful you. thanks

html:

<input type="text" id="stdate"/> 

js:

$(function(){ $("#stdate").datepicker({ dateformat: 'mm/dd/yy',                                   changemonth: true,                                  changeyear: true,                                  yearrange: '-70:+10',                                  constraininput: false,                                  duration: '',                                  gotocurrent: true}).datepicker('setdate',"0"); }); 

sample html page:

<!doctype html> <html>   <head>      <title>     date time      </title>      <meta charset="utf-8" />     <script src="http://code.jquery.com/jquery-1.9.1.js"></script>     <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>     <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">     <script type="text/javascript">     $(function(){         $("#stdate").datepicker({ dateformat: 'mm/dd/yy',                                   changemonth: true,                                  changeyear: true,                                  yearrange: '-70:+10',                                  constraininput: false,                                  duration: '',                                  gotocurrent: true}).datepicker('setdate',"0");     });     </script>     </head>     <body>         <input type="text" id="stdate"/>                 </body> </html> 

demo


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -