[fpc-pascal] The format of LongDateFormat?

Michael Van Canneyt michael at freepascal.org
Tue Apr 22 16:43:36 CEST 2008



On Tue, 22 Apr 2008, Graeme Geldenhuys wrote:

> By default under Linux, the LongDateFormat is defined in SysUtils as follows:
> LongDateFormat: 'dd" "mmmm" "yyyy';
> 
> Must there be double quotes in the string?  If so, what purpose do they serve?
> I've tried with or without the double quotes and the output is exactly the
> same on my Linux system.
> 
> 
> dd" "mmmm" "yyyy = 22 April 2008
> dd mmmm yyyy = 22 April 2008

The quotes are just a safety measure; In this particular case, they serve no
purpose. But in general, so substitution is performed on parts that are in
double quotes.

Michael.



More information about the fpc-pascal mailing list