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.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public static StartOfMonth FromString(
string startOfMonthString
)
Public Shared Function FromString (
startOfMonthString As String
) As StartOfMonth
Parameters
- startOfMonthString String
- A string with format ---DD, where
DD is a number between 01 and 28 (inclusive).
Return Value
StartOfMonthA
StartOfMonth corresponding to the day of the month represented by
startOfMonthString.
Exceptions Exception | Condition |
---|
ArgumentNullException | startOfMonthString is
null. |
FormatException | startOfMonthString 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