<script LANGUAGE="JavaScript">
function number(index
){
var numberstring="一二三四五六七八九十";
if(index
==
) {document
write("十")}
if(index
<
){
document
write(numberstring
substring(
+(index
)
index
))}
else if(index
<
){
document
write("十"+numberstring
substring(
+(index
)
(index
)))}
else if(index
<
){
document
write("二十"+numberstring
substring(
+(index
)
(index
)))}
else{
document
write("三十"+numberstring
substring(
+(index
)
(index
)))}
}
var today
= new Date()
var month = today
getMonth()+
var date = today
getDate()
var day = today
getDay()
document
write("<br><strong><small><center>")
document
write("今天是
年")
number(month)
document
write("月")
number(date)
document
write("日</small><center>")
</script>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19933.html