cater for both date formats (yyyy-mm-dd) and (dd/mm/yy)