时间显示形式的问题?的解决答案
为什么有超过3贴的限制?让我无法回贴!
函数getDateStr修改如下,其它的两个函数不用动
function getDateStr(theDate as date) as string
dim tmp as integer
dim dText as string
dim xx as integer
for xx=1 to 4
dtext=dtext+getintstr1(mid(format(thedate,"yyyy"),xx,1))
next
dtext=dtext+"年"
tmp=format(thedate,"m")
dtext=dtext+getintstr2(tmp)+iif(tmp mod 10>0,getintstr1(tmp),"")+"月
tmp=format(thedate,"d")
dtext=dtext+getintstr2(tmp)+iif(tmp mod 10>0,getintstr1(tmp),"")+"日
getdatestr=dtext
end function