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