Set the value of a DateTime in VL?
Posted: Fri May 05, 2023 1:14 am
I use DateTime fields all over the place but I guess I've never needed to set the value to anything other than .now.
How can I set a dateTime fields value? This doesn't work:
myDateTime := '2000-01-01-00.00.00' The IDE says datetime field can't be set to string. .asDateTime isn't a valid intrinsic for a literal. In RPG you can use d'2000-01-01-00.00.00'
How can I set a dateTime fields value? This doesn't work:
myDateTime := '2000-01-01-00.00.00' The IDE says datetime field can't be set to string. .asDateTime isn't a valid intrinsic for a literal. In RPG you can use d'2000-01-01-00.00.00'