JSFiddle - React, Tailwind, and code Playground
HTML
<script>
let nowDate = function() {
let now = new Date();
let month = now.getMonth() + 1;
if (month == 7) {
month = "0" + String(month);
}
return now.getDate() + '.' + month + '.' + now.getFullYear();
}
document.write(nowDate());
</script>