Click or drag to resize

StartOfMonthTryFromString Method

Tries to parse a string representation of a StartOfMonth in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601). Returns true if it succeeds.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static bool TryFromString(
	string startOfMonthString,
	out StartOfMonth result
)

Parameters

startOfMonthString  String
A string with format ---DD, where DD is a number between 01 and 28 (inclusive).
result  StartOfMonth
When this method returns, contains the StartOfMonth represented by startOfMonthString if the parsing succeeded, or the default StartOfMonth if it failed.

Return Value

Boolean
true if the parsing succeeded, false if it failed.
Exceptions
ExceptionCondition
ArgumentNullExceptionstartOfMonthString is null.
See Also