code: def get_date_info(value):
      
      fmt = _get_date_format(value)
      dt_value = _datetime_obj_factory(value, fmt)
      return dt_value, fmt
docs: Returns the datetime object and the format of the date in input
  
      :type value: `str`