DTPicker how to get time value

JvdB

Member
Hi Peggers,

I'm trying to use the DTPicker OCX in progress 9.1D

When I call the value it always returns the selected date.
How can I get the selected Time, It doesn't matter which format I set the ocx to, I always get the date when I call the Value.
In VB I saw that need to do something with the format and then it returns the time, however I have no idea how to do this in progress, I tried using STRING(ocx:value, "HH:MM:SS":U) but that gives me an error message that the first character is invalid.
Thanks already for any help,

J.
 

JvdB

Member
Got it already

Got the answer already, thought I'd share it in case other people want to know.
Turns out that I could just call the hour, minute and second properties of the DTPicker ocx.

J.
 
Top