JSFiddle - React, Tailwind, and code Playground JavaScript var date = '08-03-2013'; var d = new Date(date); alert(d.getDate());