logoalt Hacker News

nosianulast Monday at 5:00 PM2 repliesview on HN

I would also read the documentation. In the given example, for example, you don't know if the desired fixed format "YYYY-MM-DD" might depend on some locale setting and only works because you happen to have the correct one in that test console.


Replies

freeopinionlast Monday at 5:12 PM

Part of my point is this: If you have to read through the docs to see if the answer can be trusted, why didn't you just read the docs to begin with instead of asking the AI?

show 2 replies
MobiusHorizonslast Tuesday at 2:27 PM

I’m pretty sure toPlainDate() returns an object not a string.

show 1 reply