Parse date string on client side

I have added this bit of code to manually parse date strings in the client:

  def parse_date(self, date_string):
    year,month,day = [int(d) for d in date_string.split("-")]
    return datetime.date(year, month, day)
1 Like