You are here


toISO8601(long) formats a time in milliseconds to an ISO8601 formatted string.


A Long representing the time in milliseconds to convert.


The time as an ISO8601 formatted string.


    var date = new Date();
    var timeInMillisecs = date.getTime(); 
    var ISODate = utils.toISO8601(timeInMillisecs);

The preceding code snippet would convert the time in milliseconds 1,322,499,360,718 to the ISO8601 date time string 2011-11-28T16:56:00.718Z.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.