def make_date_string(date_tuple):
  """Accepts a date tuple (year,month,day) and returns a formatted
  string of the form YYYY-MM-DD."""
  year,month,day = date_tuple
  return "%4d-%02d-%02d" % (year,month,day)