force date format to ("YYYY-MM-DD") so that filtering dates works correctly.