If i am not mistaken date strings are locale specific . if your long date string is not in english will have to adjust find .
if the day is first and in another language change code to something like this
this finds the first comma and removes everything to the left of it. to help more post the output of str s.timeformat("{DD}")
if the day is first and in another language change code to something like this
str s.timeformat("{DD}")
out s
// remove day and comma from string
int i = find(s "," 0 1)
s.remove(0 i+1)
s.trim
out s
//convert to Date
DATE d1(s)
out d1
//convert to DateTime if needed
DateTime d.FromStr(s) ;;;directly from string
out d.ToStr(1)
DateTime d2.FromDATE(d1);;from Date
out d2.ToStr(1)this finds the first comma and removes everything to the left of it. to help more post the output of str s.timeformat("{DD}")
