can't cast [{ts '2018-11-15 14:38:00'} 00:00:00] to date value