Version

JsonStringToDateTime Method

Gets the JSON string and returns it as a valid System.DateTime.
Syntax
'Declaration
 
Public Shared Function JsonStringToDateTime( _
   ByVal value As System.String _
) As System.Date
public static System.DateTime JsonStringToDateTime( 
   System.string value
)

Parameters

value
The JSON string value encoded in Microsoft format, example: "\/Date(1198908717056)\/".

Return Value

DateTime
Exceptions
ExceptionDescription
System.Runtime.Serialization.SerializationExceptionThrown when input string is not correct JSON date.
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub