JSFiddle - React, Tailwind, and code Playground JavaScript var date = new Date( '1 Jan 1900 8:20:00 PM' ); document.write( date.getHours() );