CreateDateTime (NotesSession - LotusScript®)

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.

Defined in

NotesSession

Syntax

Set notesDateTime = notesSession .CreateDateTime( dateTime$ )

Parameters

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.

Return value

notesDateTime

The newly created date-time.

Example