def convert_date(date):
  """
  Converts the date from the DD/MM/YYYY format to YYYY-MM-DD
  >>> convert_date("13/04/2018")
  '2018-04-13'
  """
  tokens = date.split("/")
  return f"{tokens[2]}-{tokens[1]}-{tokens[0]}"