MyDate = StringUpper(dateTimeString("localTime?", True))
MyDay = subString(MyDate, 9, 10)
MyMonth = subString(MyDate, 5, 7) (这可能设置出来会是月份英文的缩写,想要用数字的就用下的表达式直接替换)
MyYear = subString(MyDate, 21, 24)
MyTimeStamp = MyDay + "/" + MyMonth + "/" + MyYear (这个顺序是日,月,年;改成年月日的话变更一下顺序就好)
MyMonth =
If (subString(dateTimeString("localTime?",True),5,7)="Jan")
("1")
Else If(subString(dateTimeString("localTime?",True),5,7)="Feb")
("2")
Else If(subString(dateTimeString("localTime?",True),5,7)="Mar")
("3")
Else If(subString(dateTimeString("localTime?",True),5,7)="Apr")
("4")
Else If(subString(dateTimeString("localTime?",True),5,7)="May")
("5")
Else If(subString(dateTimeString("localTime?",True),5,7)="Jun")
("6")
Else If(subString(dateTimeString("localTime?",True),5,7)="Jul")
("7")
Else If(subString(dateTimeString("localTime?",True),5,7)="Aug")
("8")
Else If(subString(dateTimeString("localTime?",True),5,7)="Sep")
("9")
Else If(subString(dateTimeString("localTime?",True),5,7)="Oct")
("10")
Else If(subString(dateTimeString("localTime?",True),5,7)="Nov")
("11")
Else("12")
MyDay =
If (subString(dateTimeString("localTime?",True),9,10)=" 1")
("01")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 2")
("02")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 3")
("03")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 4")
("04")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 5")
("05")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 6")
("06")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 7")
("07")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 8")
("08")
Else If (subString(dateTimeString("localTime?",True),9,10)=" 9")
("09")
Else(subString(MyDate, 9, 10))
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!