Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

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

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

Arguments

string val
string culture

Returns

DateTimeOffset object

Remarks

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