Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Obsolete Members for QDate

The following members of class QDate are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) bool setYMD(int y, int m, int d)

Static Public Members

(obsolete) QString longDayName(int weekday, QDate::MonthNameType type = DateFormat)
(obsolete) QString longMonthName(int month, QDate::MonthNameType type = DateFormat)
(obsolete) QString shortDayName(int weekday, QDate::MonthNameType type = DateFormat)
(obsolete) QString shortMonthName(int month, QDate::MonthNameType type = DateFormat)

Member Function Documentation

[static] QString QDate::longDayName(int weekday, QDate::MonthNameType type = DateFormat)

Returns the long name of the weekday for the representation specified by type.

The days are enumerated using the following convention:

  • 1 = "Monday"
  • 2 = "Tuesday"
  • 3 = "Wednesday"
  • 4 = "Thursday"
  • 5 = "Friday"
  • 6 = "Saturday"
  • 7 = "Sunday"

The day names will be localized according to the system's locale settings, i.e. using QLocale::system().

Returns an empty string if the date is invalid.

This function was introduced in Qt 4.5.

See also toString(), shortDayName(), shortMonthName(), and longMonthName().

[static] QString QDate::longMonthName(int month, QDate::MonthNameType type = DateFormat)

Returns the long name of the month for the representation specified by type.

The months are enumerated using the following convention:

  • 1 = "January"
  • 2 = "February"
  • 3 = "March"
  • 4 = "April"
  • 5 = "May"
  • 6 = "June"
  • 7 = "July"
  • 8 = "August"
  • 9 = "September"
  • 10 = "October"
  • 11 = "November"
  • 12 = "December"

The month names will be localized according to the system's locale settings, i.e. using QLocale::system().

Returns an empty string if the date is invalid.

This function was introduced in Qt 4.5.

See also toString(), shortMonthName(), shortDayName(), and longDayName().

bool QDate::setYMD(int y, int m, int d)

Sets the date's year y, month m, and day d.

If y is in the range 0 to 99, it is interpreted as 1900 to 1999. Returns false if the date is invalid.

Use setDate() instead.

[static] QString QDate::shortDayName(int weekday, QDate::MonthNameType type = DateFormat)

Returns the short name of the weekday for the representation specified by type.

The days are enumerated using the following convention:

  • 1 = "Mon"
  • 2 = "Tue"
  • 3 = "Wed"
  • 4 = "Thu"
  • 5 = "Fri"
  • 6 = "Sat"
  • 7 = "Sun"

The day names will be localized according to the system's locale settings, i.e. using QLocale::system().

Returns an empty string if the date is invalid.

This function was introduced in Qt 4.5.

See also toString(), shortMonthName(), longMonthName(), and longDayName().

[static] QString QDate::shortMonthName(int month, QDate::MonthNameType type = DateFormat)

Returns the short name of the month for the representation specified by type.

The months are enumerated using the following convention:

  • 1 = "Jan"
  • 2 = "Feb"
  • 3 = "Mar"
  • 4 = "Apr"
  • 5 = "May"
  • 6 = "Jun"
  • 7 = "Jul"
  • 8 = "Aug"
  • 9 = "Sep"
  • 10 = "Oct"
  • 11 = "Nov"
  • 12 = "Dec"

The month names will be localized according to the system's locale settings, i.e. using QLocale::system().

Returns an empty string if the date is invalid.

This function was introduced in Qt 4.5.

See also toString(), longMonthName(), shortDayName(), and longDayName().

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded