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