Click or drag to resize

StartOfMonthFromString Method

Parses a string representation of a StartOfMonth in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601).

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

Parameters

startOfMonthString  String
A string with format ---DD, where DD is a number between 01 and 28 (inclusive).

Return Value

StartOfMonth
A StartOfMonth corresponding to the day of the month represented by startOfMonthString.
Exceptions
ExceptionCondition
ArgumentNullExceptionstartOfMonthString is null.
FormatExceptionstartOfMonthString has an an invalid format (including if it represents a day of the month that is greater than 28).
Remarks

Note that, since StartOfMonth is designed to be applicable to all months of all years, this method will not accept "---29", "---30", or "---31".

See Also