Just Trunc the DateTimePicker.Date...
-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 29 June 2010 1:42 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] DateTimePicker
When a TDateTime is
DateOf() is nothing more than a wrapper for Trunc(TheDate) but I like to
use it becuase then you know what its doing :-) BTW TimeOf(TheDate) returns
only the time portion of a date/time and is just a wrapper for
Frac(TheDate). Once agai I use this so I know what the code is doing.
Jeremy
On
Glad my observations helped, but I'm not especially familiar with
TDateTimePicker. I was simply curious about the behaviour you described so
had a quick (2-3 mins, at the most) look at the VCL source for the control,
looking for code that changed the internal fDateTime value directly or
Are you going to claim copyright on that phrase or is it in the public
domain for reuse ;-)
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Jolyon Smith
Sent: Wednesday, 30 June 2010 11:55 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: