[DUG] DateTimePicker

Jeremy Coulter jscoulter at gmail.com
Wed Jun 30 08:54:32 NZST 2010


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 Tue, Jun 29, 2010 at 8:35 PM, David O'Brien <Dave at iccs.co.nz> wrote:

> Just Trunc the DateTimePicker.Date...
>
> -----Original Message-----
> From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at 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 set from a DateTimePicker that is being used for
> Date
> selections what is set for the time component?  Or is it random?   I am
> wondering because two different pickers seem to return unrelated times
> and
> it looks like  I have to do some testing and correcting.
>
> And for testing - I think that a test such as
>
> if DatePicker1.date = date then......
>
> might not be a reliable test (if both are effectively floating point)
>
> This is D5 in case later versions have smarter testing....
>
> John
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100630/cde3ded6/attachment.html 


More information about the Delphi mailing list