JSFiddle - React, Tailwind, and code Playground JavaScript var value = "02 Apr 2014"; var date = new Date(value); alert(date.getTime())