JSFiddle - React, Tailwind, and code Playground

JavaScript

var og_date = '2012-10-01'

console.log(og_date.split('-'));