TDateTimePicker: Returning TDateTime in Date Property
Posted on 2006-11-15
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.