Examples: CreateDateTime method

This script creates a new NotesDateTime object that represents August 18, 1995, at 1:36:22 PM.

Dim session As New NotesSession
Dim dateTime As NotesDateTime
Set dateTime = session.CreateDateTime _
( "08/18/95 01:36:22 PM" )
Messagebox( dateTime.LocalTime )
Messagebox( dateTime.GMTTime )
  • The script displays the LocalTime property in a dialog box: "08/18/95 01:36:22 PM EDT," if the script runs on a computer set to Eastern Standard Time.
  • The script displays the GMTTime property in a dialog box: "08/18/95 05:36:22 PM GMT," for example, if the script runs on a computer set to Eastern Standard Time and daylight-saving time is observed; or "08/18/95 06:36:22 PM GMT" if the machine is set to Central Standard Time.