<?php
$date = "03/31/2015";
if (DateTime::createFromFormat('m/d/Y', $date) < new DateTime()) {
echo "$date is in the past\n";
} else {
echo "$date is not in the past\n";
}
$date = "06/30/2015";
if (DateTime::createFromFormat('m/d/Y', $date) < new DateTime()) {
echo "$date is in the past\n";
} else {
echo "$date is not in the past\n";
}
PD9waHAKCiRkYXRlID0gIjAzLzMxLzIwMTUiOwoKaWYgKERhdGVUaW1lOjpjcmVhdGVGcm9tRm9ybWF0KCdtL2QvWScsICRkYXRlKSA8IG5ldyBEYXRlVGltZSgpKSB7CiAgICBlY2hvICIkZGF0ZSBpcyBpbiB0aGUgcGFzdFxuIjsKfSBlbHNlIHsKCWVjaG8gIiRkYXRlIGlzIG5vdCBpbiB0aGUgcGFzdFxuIjsKfQoKJGRhdGUgPSAiMDYvMzAvMjAxNSI7CgppZiAoRGF0ZVRpbWU6OmNyZWF0ZUZyb21Gb3JtYXQoJ20vZC9ZJywgJGRhdGUpIDwgbmV3IERhdGVUaW1lKCkpIHsKICAgIGVjaG8gIiRkYXRlIGlzIGluIHRoZSBwYXN0XG4iOwp9IGVsc2UgewoJZWNobyAiJGRhdGUgaXMgbm90IGluIHRoZSBwYXN0XG4iOwp9