javascript new Date in format MM/dd/yyyy code example Example: js date format yyyy-mm-dd yourDate.toISOString().split('T')[0]