code: def parse_period(period: str):
      
      period = period.split(" - ")
  
      date_from = Datum()
      if len(period[0]) == 10:
          date_from.from_iso_date_string(period[0])
      else:
          date_from.from_iso_long_date(period[0])
      date_from.start_of_day()
  
      date_to = Datum()
      if len(period[1]) == 10:
          date_to.from_iso_date_string(period[1])
      else:
          date_to.from_iso_long_date(period[1])
      date_to.end_of_day()
  
      return date_from.value, date_to.value
docs: parses period from date range picker. The received values are full ISO date