times=date()
date1=day(times)
if (date1<=9) then
date1="0"&date1
end if
month1=month(times)
if (month1<=9) then
month1="0"&month1
end if
year1=year(times)
timelast=year1&"-"&month1&"-"&date1
我这样好像不行,timelast是字符串
...全文
1477打赏收藏
怎样把字符串转换成2004-06-08这样的日期格式
times=date() date1=day(times) if (date1<=9) then date1="0"&date1 end if month1=month(times) if (month1<=9) then month1="0"&month1 end if year1=year(times) timelast=year1&"-"&month1&"-"&date1 我这样好像不行,timelast是字符串