Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Needs Review
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Aug 6, 2024

NotesDateTime initializing for midnight

Currently NotesDateTime cannot be initialized for midnight.

The code


dim date as new NotesDateTime("2024-010-10 00:00:00")

call date.adjustSeconds(5)


does not make any runtime errors, but the 5 seconds are just not added, because the date component is initialized without a time component. So every time calculation does not do anything.


There is only one workaround with a duplicate initialization over LSDateTime to get the time part back

dim date as new NotesDateTime("2024-010-10 00:00:00")

date.LSLocalTime = cdat("2024-010-10 00:00:00")


This behavior can create weird behavior if calculating with time zones and such stuff.


Proposal/idea would be, that it just works the way it is initialized.

Both lines should work and should give the correct date or datetime value.

dim date as new NotesDateTime("2024-010-10 00:00:00")

dim date as new NotesDateTime("2024-010-10")