求上个月?
字符型年月201301
如何得到字符型格式的上个月201212
[解决办法]
lcYearMonth='201301'
?Left(Dtos(Date(Val(Left(lcYearMonth,4)),Val(Right(lcYearMonth,2)),1)-1),6)
发布时间: 2013-01-21 10:15:39 作者: rapoo
求上个月?
字符型年月201301
如何得到字符型格式的上个月201212
[解决办法]
lcYearMonth='201301'
?Left(Dtos(Date(Val(Left(lcYearMonth,4)),Val(Right(lcYearMonth,2)),1)-1),6)