JSFiddle - React, Tailwind, and code Playground

by spydmobile

JavaScript

console.log(Math.floor((Date.now() - Date.parse(new Date().getFullYear(), 0, 0)) / 86400000))