Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Probleme mit FormatSettings.ShortDateFormat (https://www.delphipraxis.net/169768-probleme-mit-formatsettings-shortdateformat.html)

MetalChris 29. Okt 2012 10:05

AW: Probleme mit FormatSettings.ShortDateFormat
 
Ich habe mir einfache eine Funktion geschrieben, die ich beim Programmstart aufrufe. Diese ersetzt dann das / mit dem im System festgelegten DateSeperator.

Delphi-Quellcode:

FormatSettings.ShortDateFormat := StringReplace(FormatSettings.ShortDateFormat, '/', FormatSettings.DateSeparator);
FormatSettings.LongDateFormat := StringReplace(FormatSettings.LongDateFormat, '/', FormatSettings.DateSeparator);
Dadurch hat man dann immer das richtige Format.


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:05 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz