port the date validation change from 2014 to 2013