hi Expert,
I cannot create a value for datetime3 based on this code
date3 := DT2DATE("Somedate");
time3 := 150000T;
datetime3 := CREATEDATETIME(date3,time3);
I need to set a specific somedate to 3PM
the error says that the date was invalid
any ideas ?
thanks,
0
Answers
For DT2DATE you should pass DateTime as parameter.
Date3 := DT2DATE(CURRENTDATETIME)
CREATEDATETIME(Date3,150000T)
still cannot work. that "somedate" was a datetime value
assign value to it before using in DT2DATE
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Check if the Date parameter that you are passing to the CREATEDATETIME function is valid.
thanks,