how to get new date in iso format js code example Example: get iso date javascript var isoDate = new Date().toISOString()