QDate wir mach eseinfacher
Re: QDate wir mach eseinfacher
"String" und "String Literal" wären nicht schlecht.
-
- Beiträge: 200
- Registriert: 9. Juli 2010 19:31
Re: QDate wir mach eseinfacher
Daran sollte man erkennen das ein String verlangt wird. Und wie sollte das sonst gehen?QString QDate::toString ( const QString & format ) const
Returns the date as a string. The format parameter determines the format of the result string.
These expressions may be used:
Expression Output
d the day as number without a leading zero (1 to 31)
dd the day as number with a leading zero (01 to 31)
ddd the abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses QDate::shortDayName().
dddd the long localized day name (e.g. 'Monday' to 'Sunday'). Uses QDate::longDayName().
M the month as number without a leading zero (1 to 12)
MM the month as number with a leading zero (01 to 12)
MMM the abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses QDate::shortMonthName().
MMMM the long localized month name (e.g. 'January' to 'December'). Uses QDate::longMonthName().
yy the year as two digit number (00 to 99)
yyyy the year as four digit number. If the year is negative, a minus sign is prepended in addition.
-
- Beiträge: 7319
- Registriert: 26. August 2004 14:11
- Wohnort: Bremen
- Kontaktdaten:
Re: QDate wir mach eseinfacher
z.B. was die Klasse QString macht und was eine Zeichenkette ist -> C++ Grundlagen.
MfG Christian
'Funktioniert nicht' ist keine Fehlerbeschreibung
'Funktioniert nicht' ist keine Fehlerbeschreibung