Parse Method
Definition
Parse(string)
Constructs a new DateSpan object from a date and time interval specified in a string.
public static DateSpan Parse(string start)
Parameters
Returns
Parse(string, string)
Constructs a new DateSpan object from a date and time interval specified in a string.
public static DateSpan Parse(string start, string end)
Parameters
startstringA string that specifies the starting date and time value for the DateSpan interval.
endstringA string that specifies the ending date and time value for the DateSpan interval.
Returns
Parse(string, string, CultureInfo)
Constructs a new DateSpan object from a date and time interval specified in a string.
public static DateSpan Parse(string start, string end, CultureInfo culture)
Parameters
startstringA string that specifies the starting date and time value for the DateSpan interval.
endstringA string that specifies the ending date and time value for the DateSpan interval.
cultureCultureInfoA CultureInfo to resolve a Calendar object from.