function convertDateFormat (dateString) {
  const parts = dateString.split('/')
  if (parts.length !== 3) return dateString

  let year, month, day

  if (parseInt(parts[0]) > 12) {
    [day, month, year] = parts
  } else {
    [month, day, year] = parts
  }

  year = year.length === 2 ? '20' + year : year
  return `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}T00:00:00`
}
Convert date format to YYYY-MM-DD

@param {string} dateString
@returns {string} YYYY-MM-DD