六级士官
UID2692378
U币1
G币977
技术0
主题0
精华0
阅读权限70
注册时间2016-8-27
最后登录2020-4-28
在线时间55 小时
六级士官
|
本帖最后由 sytuyl* 于 2018-8-24 15:02 编辑
楼主 datetime后面是什么看不到
找到了
MyDate = StringUpper(dateTimeString("localTime?", True))
MyDay = subString(MyDate, 9, 10)
MyMonth=if(subString(MyDate, 5, 7)=="JAN")("01")ELSE IF(subString(MyDate, 5, 7)=="FEB")("02")ELSE IF(subString(MyDate, 5, 7)=="MAR")("03")ELSE IF(subString(MyDate, 5, 7)=="APR")("04")ELSE IF(subString(MyDate, 5, 7)=="MAY")("05")ELSE IF(subString(MyDate, 5, 7)=="JUN")("06")ELSE IF(subString(MyDate, 5, 7)=="JUL")("07")ELSE IF(subString(MyDate, 5, 7)=="AUG")("08")ELSE IF(subString(MyDate, 5, 7)=="SEP")("09")ELSE IF(subString(MyDate, 5, 7)=="OCT")("10")ELSE IF(subString(MyDate, 5, 7)=="NOV")("11")ELSE("12")
MyYear = subString(MyDate, 21, 25)
MyTimeStamp = MyDay + " " + MyMonth + " " + MyYear
|
|