covert to d27 may 2020 format javascript code example Example: js date format yyyy-mm-dd yourDate.toISOString().split('T')[0]