Wanted: shortest way to convert a date to a YYYYMMDD string in vanilla JavaScript in local timezone
Here's two alternatives we came up with. Do you have a better way?
Hint: `toISOString()` doesn't count because it converts to UTC
#JavaScript #100DaysOfCode #DEVCommunity