QDate wir mach eseinfacher

Du bist neu in der Welt von C++? Dann schau hier herein!
franzf
Beiträge: 3114
Registriert: 31. Mai 2006 11:15

Re: QDate wir mach eseinfacher

Beitrag von franzf »

"String" und "String Literal" wären nicht schlecht.
ScyllaIllciz
Beiträge: 200
Registriert: 9. Juli 2010 19:31

Re: QDate wir mach eseinfacher

Beitrag von ScyllaIllciz »

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.
Daran sollte man erkennen das ein String verlangt wird. Und wie sollte das sonst gehen?
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: QDate wir mach eseinfacher

Beitrag von Christian81 »

z.B. was die Klasse QString macht und was eine Zeichenkette ist -> C++ Grundlagen.
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
Antworten