Skip to content

parseWithCulture

Parses the specified string in a culture format and returns a DateTimeOffset object.

1
DateTimeOffset.parseWithCulture(val: string, culture: string):DateTimeOffset

Parameters

string val
string culture

Returns

DateTimeOffset object

Remarks

If the string is not in a valid format, the method throws an exception.

See Also