For my Woocommerce shop I am busy writing the expected shipping date of my products in javascript. Via (among others) w3schools I came after some merging into the code below. This is pretty close to what I'm looking for.
<style>
h1{
margin-top: 0px !important;
margin-bottom: 0px !important;
float: left !important;
padding-right: 10px !important;
}
</style>
<h1 id="dag"></h1><h1 id="datum"></h1><h1 id="maand"></h1>
<script>
var d = new Date();
d.setDate(d.getDate() + 3);
var days = ["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"];
document.getElementById("dag").innerHTML = days[d.getDay()];
var d = new Date();
d.setDate(d.getDate() + 3);
document.getElementById("datum").innerHTML = d.getDate();
var d = new Date();
d.setDate(d.getDate() + 3);
var months = ["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"];
document.getElementById("maand").innerHTML = months[d.getMonth()];
</script>
However, I would add one last thing. No products will be shipped on weekends (Saturday and Sunday). So it is the intention that the 'Saturday' and 'Sunday' are excluded. If Saturday or Sunday, the next working day (Monday) must be shown.
Example: Saturday January 9 = Monday January 11 Sunday January 10 = Monday January 11
Therefore, needed help as i lacked that knowledge :(
EDIT:
How to add this to my wordpress pages (via Code Snippet)?? See snippet screenshot