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.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public static bool TryFromString(
string startOfMonthString,
out StartOfMonth result
)
Public Shared Function TryFromString (
startOfMonthString As String,
<OutAttribute> ByRef result As StartOfMonth
) As Boolean
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
Booleantrue if the parsing succeeded,
false if it failed.
Exceptions See Also