سؤال

I have a notesdatetime object. Now I need to convert it into epoch millisecond format, using SSJS.

Anyone know how to achieve this?

هل كانت مفيدة؟

المحلول

You need to convert NotesDateTime to java.util.Date and then you can use getTime() to get the epoch.

ndt.toJavaDate().getTime(); //ndt is NotesDateTime object
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top