Dealing With Date Serialization And Deserialization In JavaScript

There’s a little (intentional) hole in two of JavaScript’s widely used standard functions, namely in JSON.stringify and JSON.parse and it has to do with JavaScript's Date object. And this hole can sometimes lead so some headache.

We’ll take a look at what this hole actually is, and you’ll learn how you can effectively deal with it.




Software Engineer - Content Creator

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Vite — Next generation, Lightning-fast front-end tool.

Mobile Development with React Native

vue-mark-display: using markdown to make slides

How to integrate your React app with Firebase

Node.js Performance: Event Loop and Network I/O (Part 1)

Understanding Redux Sagas

Create buttons for story actions in classic Journal or Series story maps

Keeping React.js Projects Updated

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Oliver Jumpertz

Oliver Jumpertz

Software Engineer - Content Creator

More from Medium

DI — Dependency Injection

JavaScript Testing with Jest

5 Must Know JavaScript Array Methods with Real World Examples

Reduce example where we calculate the sum of all elements in an array.

An Introduction to JavaScript Error Handling