Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread silvioprog
2012/2/1 Michael Van Canneyt mich...@freepascal.org: On Wed, 1 Feb 2012, Luciano de Souza wrote:     Hello listers,  A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread Luciano de Souza
Oh! Your correction is really good and welcome. Becouse of a Leber Congenital Amaurosis, I became blind when I was a child. As a consequence, nowadays, for me, slashes and backslashes are only a word spoken by the screen reader. It's really curious how brains can work differrently. When

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread Luciano de Souza
Oh! Very well! I am blind, for me, slashes and backslashes are only words spoken by the screen reader. The worst is I listen barra and barra invertida, the portuguese correspondent words. You can imagine: I don't see slashes and I listen differently. The chance of mistake is very high! But

[fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Luciano de Souza
Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$', now)); The answer was: 31$01$2012 Yes, the problem

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Michael Van Canneyt
On Wed, 1 Feb 2012, Luciano de Souza wrote:     Hello listers,  A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$',