Hi all,
I wuld like to know whether is there any method to get the “Server Date and time”?
I’m aware of the “systemdateget()” for getting the current date and time.
Please suggest solutions.
Regards,
Rajee
Hi all,
I wuld like to know whether is there any method to get the “Server Date and time”?
I’m aware of the “systemdateget()” for getting the current date and time.
Please suggest solutions.
Regards,
Rajee
Hi,
This was discussed already here. Please search in this forum.
Hi Harish,
i’ve searched in the forum,but i had got results only for the “how to display system date and time”
-Rajee
Hi rajarajeshwari,
try this it may help you out…
static server date getServerDate()
{
InteropPermission ip = new InteropPermission(InteropKind::ClrInterop);
TransDate serverDate;
;
ip.assert();
serverDate = System.DateTime::get_Now();
CodeAccessPermission::revertAssert();
info(strfmt("%1",serverDate));
return serverDate;
}
Naresh Kolli