can't cast [{ts '2018-02-25 04:05:09'} 00:00:00] to date value