
Envoyé par
marco64
Mon pb c'est le retour de la fonction qui ne me convient pas : jour et mois en anglais.
Comment passer en français alors que tout semble correctement paramétré ??
Normalement les variables du style ShortDayNames sont initialisées au démarrage de l'aplication en prenant en compte la config windows. Tu as peut être un problème de paramétrage de ton windows (encore que Me est connu pour être une daube)
sinon tu peut faire au démarrage de ton application :
ShortDayNames[1]:='toto';
Et bien entendu tu peux tout surcharger (unité SysUtils):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| var
CurrencyString: string;
CurrencyFormat: Byte;
NegCurrFormat: Byte;
ThousandSeparator: Char;
DecimalSeparator: Char;
CurrencyDecimals: Byte;
DateSeparator: Char;
ShortDateFormat: string;
LongDateFormat: string;
TimeSeparator: Char;
TimeAMString: string;
TimePMString: string;
ShortTimeFormat: string;
LongTimeFormat: string;
ShortMonthNames: array[1..12] of string;
LongMonthNames: array[1..12] of string;
ShortDayNames: array[1..7] of string;
LongDayNames: array[1..7] of string;
SysLocale: TSysLocale;
TwoDigitYearCenturyWindow: Word = 50;
ListSeparator: Char; |
Tu peut également utiliser
function FormatDateTime(const Format: string; DateTime: TDateTime; var FormatSettings: TFormatSettings): string;
Si disponible dans ta version de Delphi
Partager