Novell is now a part of Micro Focus

Converting "Miliseconds Since 1970" to Readable Date Format

Novell Cool Solutions: Tip
By Veli-Matti Luotonen

Digg This - Slashdot This

Posted: 27 Jun 2007


In IDM UserApp, I need to convert an attribute value saved in eDirectory as "milliseconds from 1970" to a readable date format.


Add the following code for reading the attribute into the form:

d=new Date();
d.setTime(IDVault.get(recipient,'user','endDate') *1000);

Note that the Attribute end date must be added to the Directory Abstraction Layer.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates