can't cast [{ts '2020-01-27 23:53:16'} 00:00:00] to date value