can't cast [{ts '2017-11-21 05:34:13'} 00:00:00] to date value