SPUtility.GetServerNow method
SharePoint 2013
Returns in Coordinated Universal Time (UTC) the current date and time used on the database server for the specified site.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- web
- Type: Microsoft.SharePoint.SPWeb
An Microsoft.SharePoint.SPWeb object that represents the site.
Return value
Type: System.DateTimeA System.DateTime value that indicates the current date and time on the database server.