luis at zbit.pt
Thu Mar 27 08:42:09 EST 2003
Using libc's nl_langinfo() function should do the job. Don't know any
Pascal'ish function(s) for this.
Things like THOUSEP (thousand separator), CRNCYSTR (currency symbol), etc can
be queried this way for the current locale.
On Thursday 27 March 2003 08:23, Michael Van Canneyt wrote:
> On 26 Mar 2003, Tony Maro wrote:
> > Can anyone help me figure out why:
> > FormatDateTime('MM/DD/YYYY', ThisDate)
> > always results in something looking like:
> > MM-DD-YYYY
> > It replaces my chosen slash with a dash.
> > That's fine for you foreigner's, but us warmongering Americans like
> > slashes in our dates. ;-)
> > I know it's an FPC and not a Lazarus question, just wondering if someone
> > knows an easy workaround. So far I'm having to manual separate out a
> > date and reconstruct it myself to get what I want.
> You should set the 'DateSeparator' char (in sysutils) to '/' instead of
> the defalt '-'. Then all date routines will use /...
> If someone knows how to obtain these values from Linux, let me know, and
> I'll have them initialized correctly from the OS environment. Same for
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
Luis Mineiro (luis at zbit.pt)
ZBit Software, Lda. (http://www.zbit.pt)
More information about the Lazarus