proper date check in date-constraint shortcode