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)

'Declaration
Public Shared Function ConvertDateTimeToJavaScriptTimeStamp ( _
	dt As DateTime _
) As Long
'Usage
Dim dt As DateTime
Dim returnValue As Long

returnValue = SPUtility.ConvertDateTimeToJavaScriptTimeStamp(dt)

Parameters

dt
Type: System.DateTime

Return value

Type: System.Int64
Show:
© 2016 Microsoft