Fix date type, return str ftime Y-m-d