Check for date

by John Resig