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

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close