Deserializes a relative date string value into a valid RelativeDate object. Throws an error if the date is invalid.
RelativeDate
The string serialized with the format "period-amount-unit"
The parsed RelativeDate object.
Deserializes a relative date string value into a valid
RelativeDate
object. Throws an error if the date is invalid.