Good afternoon, my problem is the next: one document in a specific field type date/time have the hour 3.12am and the server have the hour 8.50am, the hour is take for the application when a agent run, this happen when the user do it click in a specific button that execute this agent
If you are looking to grab the server time, I use this function, which I found in this forum:
Function GetServerDate As String
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim dateToFormat As String
Set db = s.CurrentDatabase
Set doc = db.CreateDocument
dateToFormat = doc.Created
GetServerDate = Format$(dateToFormat, "mm/dd/yyyy hh:mm:ss AM/PM")