JSFiddle - React, Tailwind, and code Playground

by Suryar Praveen

HTML

<!DOCTYPE html>
<html>
<body>
<script>
var URL = this.document.location.pathname;
console.log(URL);
var newDate = new Date('2023-03-01T02:00:00Z');
    var month = ('0' + (newDate.getMonth() + 1)).slice(-2);
    var day = ('0' + newDate.getDate()).slice(-2);
    var year = newDate.getFullYear();
console.log(year + '-' + month + '-' + day);
</script>

</body>
</html>