Hallo JP,
kannst Dir mal folgende Funktion anschauen,
die sollte das erledigen was Du willst.
Grüße
Klaus
Zitat:
Formats a TDateTime value.
Unit
SysUtils
Category
date/time routines
function FormatDateTime(const Format: string; DateTime: TDateTime): string;
Description
FormatDateTime formats the TDateTime value given by DateTime using the format given
by Format. See Date-Time format strings for more information.
If the string specified by the Format parameter is empty, the TDateTime value is
formatted as if a 'c' format specifier had been given.