can't cast [{ts '2017-09-21 14:44:07'} 00:00:00] to date value