Converts a string produced by
CopyC#
timeToString
or
CopyC#
DateToString
back to a time, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
expected format

Namespace: Lucene.Net.Documents
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static long StringToTime(
	string dateString
)
Visual Basic
Public Shared Function StringToTime ( _
	dateString As String _
) As Long
Visual C++
public:
static long long StringToTime(
	String^ dateString
)

Parameters

dateString
Type: System..::..String
the date string to be converted

Return Value

the number of milliseconds since January 1, 1970, 00:00:00 GMT

See Also