-1
我有像 "July 24 2015"
字符串是否可以将其转换为日期(TS)数据类型?progress 4GL/ABL如何将字符串“July 24 2015”转换为#06/24/2015#date(TS)?
它会转换为类似MM/DD/YYYY "07/24/2015 00:00:00.000"
我可以做到这一点的进步4GL?
谢谢
我有像 "July 24 2015"
字符串是否可以将其转换为日期(TS)数据类型?progress 4GL/ABL如何将字符串“July 24 2015”转换为#06/24/2015#date(TS)?
它会转换为类似MM/DD/YYYY "07/24/2015 00:00:00.000"
我可以做到这一点的进步4GL?
谢谢
define variable inputString as character no-undo.
define variable monthList as character no-undo.
monthList = "January,February,March,April,May,June,July,August,September,October,November,December".
update inputString format "x(30)".
display datetime(date(
lookup( entry(1, inputString, " "), monthList),
integer(entry(2, inputString, " ")),
integer(entry(3, inputString, " "))
)).