ConvertDateTimeToJavaScriptTimeStamp method
TOC
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:
© 2016 Microsoft