Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread Philippe
Em 18.11.2014 10:27, Michael Van Canneyt escreveu: On Tue, 18 Nov 2014, Philippe wrote: Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and

Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread Philippe
Em 19.11.2014 12:17, Philippe escreveu: Em 18.11.2014 10:27, Michael Van Canneyt escreveu: On Tue, 18 Nov 2014, Philippe wrote: Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7

Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread Michael Van Canneyt
On Wed, 19 Nov 2014, Philippe wrote: Em 19.11.2014 12:17, Philippe escreveu: Em 18.11.2014 10:27, Michael Van Canneyt escreveu: On Tue, 18 Nov 2014, Philippe wrote: Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4  ...

Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread Graeme Geldenhuys
On 2014-11-19 20:04, Michael Van Canneyt wrote: If you need to store a timestamp, use the ISO 8601 format or RFC 3339 (or is it 3999?). I can't agree more!! Snippet from tiOPF code { Summary of ISO 8601 http://www.cl.cam.ac.uk/~mgk25/iso-time.html } cIntlDateTimeStor =

Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread waldo kitty
On 11/19/2014 9:17 AM, Philippe wrote: I still don't know how to use at the same time formatStr and FormatSettings in FormatDateTime. i'm not sure i understand your delima... perhaps you are trying to determine how the FormatSettings work and how you can force the same output format on

Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread Philippe
Em 19.11.2014 19:31, waldo kitty escreveu: On 11/19/2014 9:17 AM, Philippe wrote: I still don't know how to use at the same time formatStr and FormatSettings in FormatDateTime. i'm not sure i understand your delima... perhaps you are trying to determine how the FormatSettings work

[fpc-pascal] date formating dificulty

2014-11-18 Thread Philippe
I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and got into trouble with dates format! programs behave diferent way, and what was working on the fisrt computer does not

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Philippe
Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and got into trouble with dates format! programs behave diferent way,

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Graeme Geldenhuys
On 18/11/2014 11:49, Philippe wrote: why formatDateTime( 'DD/MM/', now) returns 18-11-2014 and not 18/11/2014 ? As far as I remember the / character in the format string is not a literal character. It is a place holder for the date delimiter (varies by regional settings) - just like what

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Michael Van Canneyt
On Tue, 18 Nov 2014, Philippe wrote: Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4  ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and got

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Philippe
Em 18.11.2014 10:27, Michael Van Canneyt escreveu: On Tue, 18 Nov 2014, Philippe wrote: Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and