C# Class DynamicJson.AspTools

provides tools to work nicely in a ASP environment
Datei anzeigen Open project: pieterbreed/Dynamic-Json-for-.NET

Public Methods

Method Description
ParseStringToDateTime ( JsonString str ) : DateTime

parses a string in the format '\/Date(700000+0500)\/' to a datetime value.

SerializeDateTimeToString ( DateTime d ) : string
StringIsDate ( string s ) : bool

Method Details

ParseStringToDateTime() public static method

parses a string in the format '\/Date(700000+0500)\/' to a datetime value.
throws a AspDateTimeException if the str is not in the correct format thrown if str is null
public static ParseStringToDateTime ( JsonString str ) : DateTime
str JsonString must be a non-null, valid serialized datetime string
return DateTime

SerializeDateTimeToString() public static method

public static SerializeDateTimeToString ( DateTime d ) : string
d DateTime
return string

StringIsDate() public static method

public static StringIsDate ( string s ) : bool
s string
return bool