JavaScript . , . , JavaScript , . , :
<input id="form_date" name="form_date" type="hidden" value="2017-12-19 17:52:08">
<script>
Date.prototype.sameDay = function(d) {
return this.getFullYear() === d.getFullYear()
&& this.getDate() === d.getDate()
&& this.getMonth() === d.getMonth();
};
var x_today = new Date();
var x_page_date = new Date($('#form_date').val());
if (console && !x_today.sameDay( x_page_date )){
console.log("Old page!");
console.log('page date: ', x_page_date);
console.log('today: ', x_today);
}
</script>
, .