Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Dateformat in Autosearch dialog

edited October 2011 in General
Hello,
I am using 12.05 with XE. In autosearchdialog the date format is displayed
as dd/mm/yyyy instead of the regional settings dd.mm.yyyy. Any idea where it
takes the date separator, because the sequence is ok (day, month, year.

best regards
christian
eulanda software

Comments

  • edited October 2011
    Hi Christian,

    The AutoSearch dialog uses the ppFormatSettings.LongDateFormat or
    ShortDateFormat to format the date inside the dialog. This will be the
    date format based on the machine's locale unless you are changing it
    anywhere in your application. If you are changing it, you will also
    need to change the ppFormatSettings as well.

    For instance...

    uses
    ppUtils;

    DateSeparator := '.';
    ppFormatSettings.DateSeparator := DateSeparator;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.