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
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
...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of John Bird
Sent: Wednesday, 30 June 2010 11:22
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] DateTimePicker
It looks like D5 does not have DateOf, but the Trunc function works fine
(with a comment of why
: [DUG] DateTimePicker
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
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
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
If you are only interested in the Date part of the TDateTime you could
always use the Trunc function.
ie. if Trunc(DatePicker1.Date) = Date then...
Cheers,
Colin
On 29 June 2010 11:42, John Bird johnkb...@paradise.net.nz wrote:
When a TDateTime is set from a DateTimePicker that is being used
in my experience, the DatePicker1.date only returns the date part of the
date in the control i.e. no time portion. If you want to be double sure you
can do DateOf(DatePicker1.Date)
Jeremy
On Tue, Jun 29, 2010 at 2:20 PM, Colin Johnsun colin.a...@gmail.com wrote:
If you are only interested in
Hi
Does anyone know, if an equivalent control to TDateTimePicker exists for
cross-platform development in D6. There doesn't appear to be a CLX reference
to it in the Delphi help.
Thanks
Todd.
---
New Zealand Delphi
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Saturday, 12 February 2000 22:43
To: Multiple recipients of list delphi
Subject: Re: [DUG]: DateTimePicker headscratcher
snip
I think it's more a 12/24 hour display option
FYI heres what I do:
var ILResult: integer;
begin
application.UpdateFormatSettings := false;
{
Use UpdateFormatSettings to control automatic updating of format settings.
The default of True is set in the constructor. UpdateFormatSettings is
checked when the application receives a
hi folks
I have a DateTimePicker which I use to enter a duration, works great on my
development machine. I set the 'kind' property to dktTime, and I see something
like '00:00:00' in the display. I can select any one of the pairs of digits and
enter from 00 to the logical amount for a time field.
Sent: Saturday, 12 February 2000 16:37
To: Multiple recipients of list delphi
Subject: [DUG]: DateTimePicker headscratcher
hi folks
I have a DateTimePicker which I use to enter a duration, works great on my
development machine. I set the 'kind' property to dktTime, and I
see something
like
of this DLL, some of which fix various
bugs including in this control.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Leo Ramakers
Sent: Saturday, 12 February 2000 16:37
To: Multiple recipients of list delphi
Subject: [DUG]: DateTimePicker
14 matches
Mail list logo