-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, " "))
)).