在给你一个
<script language="javascript">
<!--
var curr_time = new Date();
var strDate = curr_time.getYear()+"年";
strDate += curr_time.getMonth()+1+"月";
strDate += curr_time.getDate()+"日";
strDate += curr_time.getHours()+":";
strDate += curr_time.getMinutes()+":";
strDate += curr_time.getSeconds();
alert(strDate);
//-->
</script>