PAG_Promax
asked on
TDateTimePicker: Returning TDateTime in Date Property
Hi there,
Can anyone tell me how I can get the TDateTimePicker to return ONLY the date portion in the Date property? It's returning the time fraction as well.
Just so you know, I have just replaced an old control with this one, and it's used in around 250 places within the application, so I really don't want to be changing to much to get it to work. All I'd like is when I go DateTimePicker1.Date, it'd return 39037, not 39037.686077.
I was under the impression the Date property is supposed to do that. But it's not. It's almost like it's a TDateTime.
Thanks for your help.
Pag.
Can anyone tell me how I can get the TDateTimePicker to return ONLY the date portion in the Date property? It's returning the time fraction as well.
Just so you know, I have just replaced an old control with this one, and it's used in around 250 places within the application, so I really don't want to be changing to much to get it to work. All I'd like is when I go DateTimePicker1.Date, it'd return 39037, not 39037.686077.
I was under the impression the Date property is supposed to do that. But it's not. It's almost like it's a TDateTime.
Thanks for your help.
Pag.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
And thanks for the info about the DateOf function too, Hardi. I didnt know about that one.