Click or drag to resize

DayFromString Method

Parses a string date in ISO YYYY-MM-DD format (the format used by XML schema's date type), or YYYYMMDD format.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static Day FromString(
	string s
)

Parameters

s  String
A string representation of a date, in YYYY-MM-DD or YYYYMMDD format with an optional '+' in front.

Return Value

Day
A Day corresponding to the date represented by s.
Exceptions
ExceptionCondition
ArgumentNullExceptions is null.
FormatExceptions is the empty string, or has an invalid format, or represents a non-existent date.
Remarks

Both formats can optionally have a '+' in front - XML schema doesn't allow the '+', but ISO does.

See Also