Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetServerNow method
Collapse the table of content
Expand the table of content

SPUtility.GetServerNow method

Returns in Coordinated Universal Time (UTC) the current date and time used on the database server for the specified site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static DateTime GetServerNow(
	SPWeb web


Type: Microsoft.SharePoint.SPWeb

An Microsoft.SharePoint.SPWeb object that represents the site.

Return value

Type: System.DateTime
A System.DateTime value that indicates the current date and time on the database server.
© 2015 Microsoft