Given a string that represents the date and time you want, creates a new NotesDateTime object that represents that date and time. When used with OLE automation, this method allows you to create a NotesDateTime object without using New.
Set notesDateTime = notesSession.CreateDateTime( dateTime$ )
dateTime$
String. The date and time you want the object to represent. If you use an empty string (""), the date is set to a wildcard date. The Notes date-time expressions "Today," "Tomorrow" and "Yesterday" are supported.
notesDateTime
The newly created date-time.
For more information on acceptable formats for the dateTime$ parameter, see the NotesDateTime class.
createDateTime method in Java Session class
See examples