seconds to iso 8601 javascript code example Example: get iso date javascript var isoDate = new Date().toISOString()