<script language= "javascript" type= "Text/javascript" >//Page LoadJQuery (document). Ready (function($) {Ask_time=(NewDate ()). Format ("Yyyy-mm-dd hh:mm:ss"); document.all (' Jk_main/ask_time '). value=Ask_time; //formatted DateDate.prototype.Format =function(FMT) {varo = { "m+": This. GetMonth () +1,//Month"D+": This. GetDate (),//Day"H +": This. GetHours (),//hours"m+": This. getminutes (),//points"S+": This. getseconds (),//seconds"q+": Math.floor (( This. GetMonth () +3)/3),//Quarterly "S": This. Getmilliseconds ()//milliseconds }; if(/(y+)/. Test (FMT) FMT=fmt.replace (Regexp.$1, ( This. getFullYear () + ""). substr (4-regexp.$1. length)); for(varKincho)if(NewRegExp ("(" + K + ")"). Test (FMT) FMT= Fmt.replace (regexp.$1, (regexp.$1.length==1)? (O[k]): (("XX" + o[k]). substr ("" +o[k])); returnFMT; }</script>
JS converts the date format to Yyyy-mm-dd HH:MM:SS