Date Fix
by Joe Saad
HTML
<input type="text" placeholder="mm/dd/yyyy" />
<a href="#">Check Date</a>
JavaScript
$('a').click(function () {
var myDate = new Date($('input').val());
var today = new Date();
alert(today);
if (myDate.setHours(0, 0, 0, 0) < today.setHours(0, 0, 0, 0)) {
alert('oh this past today');
}
});