← Back to team overview

ubuntu-phone team mailing list archive

Bug in formatDate sample

 

The current sample in the ubuntu-sdk api documentation for Qt.formatDate
seems incorrect.

When month letters in Qt.formatDate are lower-case:
text: "Shift Start Date:" + Qt.formatDate(datePicker.date,
"dd-mmm-yyyy")

It improperly displays:
31-mmm-2014

The month letters should be upper-case:
text: "Shift Start Date:" + Qt.formatDate(datePicker.date,
"dd-MMM-yyyy")

Then it properly displays:
31-Mar-2014



References