Re: [DUG] TFormatSettings

2010-11-10 Thread Ross Levis
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Kyley Harris Sent: Wednesday, 10 November 2010 11:26 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] TFormatSettings I never store dates in a locale format.. Editing them on the GUI is fine.. but the moment the value is pulled from

Re: [DUG] TFormatSettings

2010-11-10 Thread Kyley Harris
: [DUG] TFormatSettings I never store dates in a locale format.. Editing them on the GUI is fine.. but the moment the value is pulled from the edit control its either TDateTime, or a Fixed internal string format '-mm-dd' when needing to pass a value through streams etc.  I've found it bad

Re: [DUG] TFormatSettings

2010-11-10 Thread Kyley Harris
...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 10 November 2010 10:56 PM To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] TFormatSettings This is really bizarre. I store a snapshot of all the regional settings when the program

Re: [DUG] TFormatSettings

2010-11-10 Thread Ross Levis
Sorry, found the problem. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 10 November 2010 10:56 PM To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] TFormatSettings This is really bizarre. I store

[DUG] TFormatSettings

2010-11-10 Thread Ross Levis
This is really bizarre. I store a snapshot of all the regional settings when the program is started, to prevent issues if the date format is changed while the program is running. I store a couple of dates in a string using DateToStr and use StrToDate to convert it back later. var FS: