Conversion of date time string to milliseconds and vice versa
I need to convert date time string [which i can construct in suitable format, if required] to milliseconds [since epoch time] and vice versa in QML/JS.
Is there any API available for this.???
I don't know if there is such functionality in QML directly, but in any way you can export custom function to the QML space and use it for format conversion... Take a look at "Extending QML Functionalities using C++"http://doc.qt.digia.com/qt/qtbinding.html and "Using QML Bindings in C++ Applications":http://doc.qt.digia.com/qt/qtbinding.html
This can help?:
Thank you all for reply...
I would like to know about all the possible date string formats supported by 'Date object' while creating like this, var myDate = new Date (dateString). couldn't get well document anywhere...