How to catch Server Date &Time

How to catch server date and time. i tried many commands like @today, @now, @now([servertime]). None of these are working. These functions are picking time from client. But i want to catch servertime.

Subject: How to catch Server Date &Time

@Now with [ServerTime] in R6 is suppose to fetch the server time … don’t know why its not working for you !

You can try this workaround :

dim sess as New NotesSession

dim db as NotesDatabase

dim doc as NotesDocument

set db = sess.CurrentDatabase

set doc = db.CreateDocument

doc.Created —> will give the server date & time

cheers !!

Ashish

Subject: RE: How to catch Server Date &Time

Hi ashish

I have used the same code but it is not working.for check please change the time zone of your local pc then check.

Regards

Animesh

Subject: RE: How to catch Server Date &Time

Hi Manorma Animesh here if you want the code that will fetch the server time then please mail me on my yahoo id or notesid .you can get my notes id from Amar.

Regards

Animesh