JSFiddle - React, Tailwind, and code Playground
HTML
<p date="11/21">On November 21 this will show.</p>
<p date="11/23">On November 23 this will show.</p>
<p date="9/30">On September 30 this will show.</p>
JavaScript
function show_hide_me () {
var myDate = new Date();
var hour = myDate.getHours();
var date = myDate.getDate();
var month = myDate.getMonth();
var minute = myDate.getMinutes();
$("p").each(function( index ) {
var data = new Date(Date.parse($(this).attr("date")));
//alert(data.getMonth());
if(data.getMonth() == month && data.getDate() == date) {
$(this).show();
}
else {
$(this).hide();
}
});
}
show_hide_me();