最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
日期转大写的代码
时间:2022-06-30 11:19:48 编辑:袖梨 来源:一聚教程网
'2004-6-11 => 二零零四年六月十一日
Function D(x)
if int(split(x,"-")(2)/10)=0 then D=D & F(split(x,"-")(2)) else _
if split(x,"-")(2) mod 10 =0 then D=D & F(int(split(x,"-")(2)/10)) & "十" else _
D=D & F(int(split(x,"-")(2)/10)) & "十" & F(split(x,"-")(2) mod 10)
D=F(split(x,"-")(0)) & "年" & MonthName(split(x,"-")(1),True) & replace(D,"一十","十") & "日"
end Function
Function F(x)
for i=1 to len(x)
if mid(x,i,1)="0" then F=F & "零" else F=F & left(MonthName(mid(x,i,1),True),1)
next
end Function
msgbox D(Date)
Function D(x)
if int(split(x,"-")(2)/10)=0 then D=D & F(split(x,"-")(2)) else _
if split(x,"-")(2) mod 10 =0 then D=D & F(int(split(x,"-")(2)/10)) & "十" else _
D=D & F(int(split(x,"-")(2)/10)) & "十" & F(split(x,"-")(2) mod 10)
D=F(split(x,"-")(0)) & "年" & MonthName(split(x,"-")(1),True) & replace(D,"一十","十") & "日"
end Function
Function F(x)
for i=1 to len(x)
if mid(x,i,1)="0" then F=F & "零" else F=F & left(MonthName(mid(x,i,1),True),1)
next
end Function
msgbox D(Date)
相关文章
- 夸克如何屏蔽网页小广告-夸克网页小广告屏蔽技巧 02-09
- 四级成绩查询-中国教育考试网四六级查分入口 02-09
- 拼多多先用后付最迟多久付款-拼多多先用后付额度如何查看 02-09
- 喵呜漫画app下载安卓版安装包-喵呜漫画App官方正版入口免费下载 02-09
- 四六级成绩查询-中国教育考试网查分入口 02-09
- 女神漫画免费下载最新版本动漫入口页面-女神漫画在线观看安装包动漫入口 02-08