call the method datetime.datetime.strptime with 2 arguments: result of the function force_str called with an argument value,
return datetime . datetime . strptime ( force_str ( value ) , format ) . date ( )