dateOnly
dateOnly(): (
target,key) =>void
Property level decorator. Used to specify that property is saved and displayed only as a date, without time.
If we create a resource with registerDate 3/5/25, 4:28 PM, it will be displayed fully.
Now, we can add @dateOnly decorator for registerDate property
and then registerDate will be saved and displayed as 3/5/25.
Sets {@link PropertyMeta.type} and {@link PropertyMeta.dateOnly}.
Returns
(
target,key):void
Parameters
target
object
key
string
Returns
void