Your app displays a wrong birthdate


Markings of the prime meridian at the Royal Observatory, Greenwich.

Local Dates

Zoned Dates

> new Date('2006-06-09')
> new Date(2006, 5, 9)
> new Date('2006-06-09').toString()
'Fri Jun 09 2006 02:00:00 GMT+0200 (CEST)'
> new Date(2006, 5, 9).toString()
'Fri Jun 09 2006 00:00:00 GMT+0200 (CEST)'
> new Date('2006-06-09T18:00:00.000+02:00')
> new Date('2006-06-09T18:00:00.000+02:00').getHours()
> new Date('2006-06-09T18:00:00.000+02:00').getUTCHours()
> new Intl.DateTimeFormat('de-DE').format(new Date('2006-06-09'))
> new Intl.DateTimeFormat('de-DE', { timeZone: 'Europe/London' }).format(new Date('2006-06-09'))

… there must be a lib for that




developer at

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

Recommended from Medium

What does Technology Consultants do? Is Coding Required?

Everything You Need To Know About Software Design In Ten Minutes

Sunder Finance — Alpha Release now live!

How to organize an excellent tickets categorization in Zendesk

Friendly WordPress developer automation with Trellis — Deploy on DigitalOcean

WordPress plus Trellis automation deploy

Auditing Process Method has been Changed.

How Skype for web saved my job

Software Development in 2018: Trends, Tools & Technologies

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
Florian Hirsch

Florian Hirsch

developer at

More from Medium

Why you and your company probably shouldn’t use Vue: The Hard Way

Breakdown of the Asynchronous Promise: Fetch() Method

Dependency injection (DI) and DI Container with Vanilla JavaScript

DI Container

Isomorphic Code

Client-side code using MongoDB-style queries to fetch data