<label for="meeting">Next meeting (August 2021):</label>
<input type="date"
id="meeting"
name="meeting"
min="2021-08-01"
max="2021-08-31"
defaultValue="2021-08-01">
<script>
function startDate() {
var d = new Date();
var days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var months = ["January","February","March","April","May","June","July","August","September","October","November","December"];
document.getElementById("date").innerHTML = days[d.getDay()]+" | "+d.getDate()+" "+months[d.getMonth()]+" "+d.getFullYear();
}
startDate();
</script>
<body onload='startDate()'>
<div id='date'></div> <!-- use some css on #Date -->
</body>
Code Example |
---|
Html :: a href rel |
Html :: svelte if block |
Html :: syntax is being placed in my textarea in html |
Html :: one image html |
Html :: convert element to html string |
Html :: h1 html |
Html :: onclick on input type checkbox field |
Html :: toggle button |
Html :: connect html to mysql database |
Html :: how to make common header and footer in html |
Html :: itelaic in html |
Html :: html <svg path star |
Html :: date month year dropdown html |
Html :: html title |
Html :: the <video tag |
Html :: html components |
Html :: boostrap card |
Html :: html onclick not working |
Html :: how to add html in useState |
Html :: random user image url |
Html :: bootstrap navs tabs code |
Html :: request html nodejs |
Html :: html admin template free |
Html :: html in page navigation |
Html :: postman tutorial |
Html :: expandable and collapsible html tables |
Html :: wp audio volume |
Html :: input text |
Html :: html prime number program |
Html :: carousel in bootstrap |