Examples: LocalTime property (NotesDateTime - LotusScript®)

  1. This script displays the value of the LSLocalTime property, which equals "04/16/96 05:36:00 PM," regardless of the computer's time zone setting.
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Messagebox( dateTime.LocalTime )
  2. This script creates a new NotesDateTime object set to the default date, and then sets its LocalTime property. The dateTime object now represents 08/18/97, with a TimeZone property of 0.
    Dim dateTime As New NotesDateTime( "" )
    dateTime.LocalTime = "08/18/97"