Directive to convert and format DateOnly values using Globalite.
When the input value is a string, it will be parsed using the current locale.
And the value for the form control will be a DateOnly object if the string is a valid date.
When the value of the form control is a DateOnly object,
it will be formatted using the current locale and the specified format
and written to the input element.
An empty string or a string with only whitespace will be converted to null.
DateOnly objects are used to represent dates without time information.
Directive to convert and format DateOnly values using Globalite. When the input value is a string, it will be parsed using the current locale. And the value for the form control will be a DateOnly object if the string is a valid date. When the value of the form control is a DateOnly object, it will be formatted using the current locale and the specified format and written to the input element.
An empty string or a string with only whitespace will be converted to
null
.DateOnly objects are used to represent dates without time information.
Example