I want to show the current date in my invoice. To do this, im using the following method:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
Datum:
<p id="date"></p>
<script>
var today = new Date();
var day = today.getDay();
var month = today.getMonth();
var year = today.getYear();
document.getElementById('date').innerHTML = day + "." + month + "." + year;
</script>