Prism · Time
$date
Writes a date in a given format. The format is a dayjs format string.
{ createdAt: '2024-01-15T08:30:00Z' }{
$date: { value: { $ref: '$.createdAt' }, format: 'YYYY-MM-DD' },
}'2024-01-15'
Runs in this page on the installed package. The input and the expected output are defined by the example.