date QML Basic Type
A date is specified as "YYYY-MM-DD".
要创建
date
value, specify it as a "YYYY-MM-DD" string:
范例:
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().
另请参阅
QML 基本类型
.