Sub Initialize
Dim dateTime As New NotesDateTime("")
dateTime.LocalTime = Datenumber(2005, 03, 04) + Timenumber(6, 7, 8)
Messagebox dateTime.LocalTime,, "Local time"
End Sub
Sub Initialize
Dim session As New NotesSession
If session.International.IsDateMDY And _
session.International.DateSep = "/" And _
session.International.TimeSep = ":" Then
Dim dt As New NotesDateTime("3/4/05 6:07:08")
Messagebox dt.LocalTime,, "Local time"
Else
Messagebox "Not MDY with / and :",, "Date format not appropriate"
End If
End Sub
Sub Initialize
Dim dt As New NotesDateTime("Today")
Messagebox dt.LocalTime,, "Local time"
End Sub
Sub Initialize
Dim dt As New NotesDateTime("Today")
Call dt.SetNow
Messagebox dt.LocalTime,, "Local time"
End Sub
Sub Initialize
Dim session As New NotesSession
Dim doc As NotesDocument
Dim item As NotesItem
Dim dt As NotesDateTime
Set doc = session.DocumentContext
Set item = doc.GetFirstItem("PurgeDate")
Set dt = item.DateTimeValue
Messagebox dt.LocalTime & " TZ" & dt.TimeZone,, "Local time"
End Sub