JSFiddle - React, Tailwind, and code Playground JavaScript var testi = new Date().toLocaleTimeString(); var len2 = testi.length; alert(len2);