You don't set the display format on a control basis. Display formats for dates should be set application wide, although this is very bad practice. You could change the display format for a date by:
ShortDateFormat := 'mm-dd-yyyy';
Thanks Matthijas, it works! I put in FormCreate
if libc.getenv('LC_TIME') = 'en_US' then
ShortDateFormat := 'mm-dd-yyyy';
Why setting the format application wide is bad practice? Are there any other code depend on specific date format internally?
How about the numeric display of monetary values. Is there any global setting for
$ 123,123.12 like in US and other countries have 123.123,12 ?
LC_MONETARY=en_US
And personally I think the American date notation is the most illogical way to do it. :D
I absolutely agree, the date notation as well as many other things are wacko .