hard20 pts · first answer countsjavascriptdates-and-timezones
Birthday shows one day early
A user’s birthday comes from the API as "2026-03-10". In a browser set to America/New_York, what does this print?
const d = new Date('2026-03-10')
console.log(d.getDate())Discussion 0
Join free to post in the discussion.
Related questions
- fetch and error status codesFull Stack Developer
- Timer vs promise orderFull Stack Developer
- try/catch around an async callFull Stack Developer
- map with an async callbackFull Stack Developer
- Dates sent through JSONFull Stack Developer
- Large IDs change in the browserFull Stack Developer
- Block scope of letFrontend Developer
- Loose vs strict equalityFrontend Developer