QML Basic Type: date

To create a date value, specify it as a "YYYY-MM-DD" string:

Example:

 MyDatePicker { minDate: "2000-01-01"; maxDate: "2020-12-31" }

To read a date value returned from a C++ extension class, use Qt.formatDate() and Qt.formatDateTime().

See also QML Basic Types.

Notes provided by the Qt Community

No notes