Manage Learn to apply best practices and optimize your operations.

Easiest way to get server time

This tip describes how to retrieve the server time

Lotus Notes always uses local/workstation time when you use/define NotesDateTime. To get Server's time with the easiest way use this code:


function GetServerTime as variant

Dim ses As New NotesSession
Dim db As notesDatabase
Dim doc As notesDocument
Dim dt As Variant
Set db = ses.currentDatabase
Set doc = New NotesDocument(db)
dt = doc.created 
Call doc.remove(True)
GetServerTime = dt

end function 

Dig Deeper on Lotus Notes Domino Administration Tools

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

SearchDataCenter
SearchContentManagement
Close