IsValidDate (NotesDateTime - LotusScript®)

Read-only. Indicates whether the string that is used to create the NotesDateTime object is valid.

Note: This property is new with Release 5.

Defined in

NotesDateTime

Data type

Boolean

Syntax

To get: flag = notesDateTime .IsValidDate

Legal values

  • True indicates that the string with which the NotesDateTime object was created is valid.
  • False indicates that the string with which the NotesDateTime object was created is not valid.

Usage

An empty string is considered a valid string.

If the string is invalid, a NotesDateTime object is created but IsValidDate returns False.

Example