parse¶
Parses the specified string and returns a DateTimeOffset object.
1 |
|
Parses the given string in the specified format and returns a DateTimeOffset object.
1 |
|
Parameters¶
string val
A string representing the date and time.
string format
A format string that specifies the expected format of the input string.
Returns¶
A DateTimeOffset object representing the parsed date and time. A DateTimeOffset object representing the parsed date and time.
Remarks¶
If the string does not include a time zone offset, the local time zone offset is used.
Example¶
1 |
|
Example¶
1 |
|
Example¶
1 |
|