<script type="text/javascript">
//<![CDATA[
var a=new Date();
var y = a.getYear()+"-";
var m = a.getMonth()+"-";
var d = a.getDay()+"-";
var h = a.getHours()+"-";
var x = a.getMinutes()+"-";
var s = a.getSeconds()+"-";
var ms=a.getMilliseconds()+"-";
document.write(y + m + d + h + x + s + ms);
//]]>
</script
好象不能够啊!
getDate Returns the day of the month for the specified date.
getDay Returns the day of the week for the specified date.
getHours Returns the hour in the specified date.
getMinutes Returns the minutes in the specified date.
getMonth Returns the month in the specified date.
getSeconds Returns the seconds in the specified date.
getTime Returns the numeric value corresponding to the time for the specified date.
getTimezoneOffset Returns the time-zone offset in minutes for the current locale.
getYear Returns the year in the specified date.