Re: [DUG] DateTimePicker

2010-06-29 Thread David O'Brien
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

Re: [DUG] DateTimePicker

2010-06-29 Thread Jeremy Coulter
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

Re: [DUG] DateTimePicker

2010-06-29 Thread Jolyon Smith
...@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

Re: [DUG] DateTimePicker

2010-06-29 Thread David Brennan
: [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

[DUG] DateTimePicker

2010-06-28 Thread John Bird
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

Re: [DUG] DateTimePicker

2010-06-28 Thread Jolyon Smith
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

Re: [DUG] DateTimePicker

2010-06-28 Thread Colin Johnsun
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

Re: [DUG] DateTimePicker

2010-06-28 Thread Jeremy Coulter
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

[DUG]: DateTimePicker for Linux

2003-04-01 Thread Todd Martin
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

RE: [DUG]: DateTimePicker headscratcher

2000-02-12 Thread Patrick Dunford
-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

[DUG]: DateTimePicker headscratcher

2000-02-12 Thread Alistair George
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

[DUG]: DateTimePicker headscratcher

2000-02-11 Thread Leo Ramakers
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.

RE: [DUG]: DateTimePicker headscratcher

2000-02-11 Thread Patrick Dunford
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

Re: [DUG]: DateTimePicker headscratcher

2000-02-11 Thread Leo Ramakers
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