← Back to team overview

ubuntu-phone team mailing list archive

[qml] Importing moment.js

 

I'm looking for a way to format dates nicely. It looks like moment.js
will give me what I want, but I can't work out how to use it from QML or
a Javascript file.

I've downloaded the with-langs file from their website, and then tried
"import 'moment.js' as moment" and "Qt.include('moment.js')", but still
can't seem to use it.

Any ideas on how to make this work?

Attachment: signature.asc
Description: This is a digitally signed message part


Follow ups