문제

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