Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 notesdatetime 对象。现在我需要使用 SSJS 将其转换为纪元毫秒格式。
任何人都知道如何实现这一目标?
您需要转换NotesDateTime为java.util.Date,然后才能使用getTime()来获取纪元。
NotesDateTime
java.util.Date
getTime()
ndt.toJavaDate().getTime(); //ndt is NotesDateTime object