将数字日期转换成汉字大写日期

类别:编程语言 点击:0 评论:0 推荐:

function cnDate(enDate) { //用于将“2003-01-14”这种格式的日期更改为“二○○三年一月十四日” var OldYear,OldMonth,OldDate; var NewYear,NewMonth,NewDate; var i,sTemp; var sChinese=new Array("○","一","二","三","四","五","六","七","八","九","十"); OldYear=enDate.substring(0,4); OldMonth=enDate.substring(5,7); OldDate=enDate.substring(8,10); NewYear=""; NewMonth=""; NewDate=""; for(i=0;i

本文地址:http://com.8s8s.com/it/it25303.htm