the actual value of this ValueObject
Static
createa Result
with the created SafeDate
to create a SafeDate of
Optional
options: SafeDateOptionsconstraints the value has to fulfill
Static
froma Result
with an array of created SafeDates
an array of strings to map to an array of SafeDates
Optional
options: SafeDateOptions & ListCreationOptionsconstraints the values / list has to fulfill
Static
listcompares 2 Lists of ValueObjects / values on equality
true if the lists are equal
the list of ValueObjects to compare with
a list of ValueObjects / values for comparison
Static
toStatic
validatethe value if the validation was successful
if not parsable to a valid Date
if the Date is not inside the interval (between the given intervals' Dates)
if the given interval Dates are no valid (parsable) Dates
to be validated as a valid Date
Optional
options: SafeDateOptionsconstraints the value has to fulfill
Generated using TypeDoc
A Date that is definitely a Date
... that can be created from either a Date or a string that represents a Date, or a number that represents the time in ms. Every creation that the original JS
Date
offers is allowed.Example
Fails