I found something Strange,
I have a date Mon Dec 30 00:00:00 CST 2019
when I tried converting this to system.date.format(date,"YYYY-MM-dd")'
it gave me
2020-12-30
Here,
The year is completely different !
I found something Strange,
I have a date Mon Dec 30 00:00:00 CST 2019
when I tried converting this to system.date.format(date,"YYYY-MM-dd")'
it gave me
2020-12-30
Here,
The year is completely different !
YYYY is “week year”, which is almost never what you want.
You need yyyy.
(See Paul’s video for why, or this SO question.)
wow, sometime you feel you’re smart but then someone comes in and tells you how dumb you’re !! Thanks so much
Some of us greybeards have been round and round with that. You get used to it. /:
Like Phil said.
The only reason I know that one is because I’ve been bitten by it. More than once. In fact, way too many times.