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

SPUtility.ConvertDateTimeToJavaScriptTimeStamp method

SharePoint 2013

Convert DateTime to JvaScript time stamp (milliseconds since midnight Jan 1, 1970 UTC)

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

public static long ConvertDateTimeToJavaScriptTimeStamp(
	DateTime dt
)

Parameters

dt
Type: System.DateTime

Return value

Type: System.Int64
Show:
© 2015 Microsoft