*DATETIME
Posted: Fri Sep 20, 2019 10:39 am
I have a variable
Define Field(#dtavl) Type(*DATETIME) Length(19)
I want to set the date and time portions
This sets the date
#dtavl := #CATGRPCL.AsDate( CCYYMMDD )
but this sets the time and but turns the date back to 1900-01-02
#dtavl := #WRK6N0.AsTime( HHMMSS )
How do I set both parts?
I want to build two datetimes so I can compare them without spanning midnight etcetera
Cheers
Jim
Define Field(#dtavl) Type(*DATETIME) Length(19)
I want to set the date and time portions
This sets the date
#dtavl := #CATGRPCL.AsDate( CCYYMMDD )
but this sets the time and but turns the date back to 1900-01-02
#dtavl := #WRK6N0.AsTime( HHMMSS )
How do I set both parts?
I want to build two datetimes so I can compare them without spanning midnight etcetera
Cheers
Jim