Converts a string produced by or
back to a time, represented as a
Date object.
CopyC#
timeToString
CopyC#
DateToString
expected format
Namespace: Lucene.Net.DocumentsAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static DateTime StringToDate( string dateString ) |
Visual Basic |
---|
Public Shared Function StringToDate ( _ dateString As String _ ) As DateTime |
Visual C++ |
---|
public: static DateTime StringToDate( String^ dateString ) |
Parameters
- dateString
- Type: System..::..String
the date string to be converted