parseWithCulture¶
Parses the specified string using culture-specific formatting information and returns a DateTimeOffset object.
1 |
|
Parameters¶
string val
A string representing the date and time.
string culture
A string specifying the culture to use for parsing (e.g., "en-US", "fr-FR").
Returns¶
A DateTimeOffset object representing the parsed date and time.
Remarks¶
If the string is not in a valid format, the method throws an exception.