Reduce Map And Filter Function Python Format Date