I’m pretty sure toPlainDate() returns an object not a string.
???
What does that have to do with my comment?
The OP explicitly wrote
> prompt> use javascript to convert a unix timestamp to a date in 'YYYY-MM-DD' format using Temporal
???
What does that have to do with my comment?
The OP explicitly wrote
> prompt> use javascript to convert a unix timestamp to a date in 'YYYY-MM-DD' format using Temporal