JavaScript · Senior · Question 73 of 75

What is a robust way to store and transfer dates?

Explanation

Local strings lose the time zone and break around DST changes. Intl.DateTimeFormat with timeZone formats for display; the Temporal API adds explicit time-zone-aware types.

Further reading

Problem with a question

JavaScript · Senior · question 73

Test yourself

Take the JavaScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz