I need to express a Date as a String with the exact format format:
 2015-01-20   
I see there is an date.toIsoFormatString() but not sure where or how to provide the format shown above.
 Here is my code:
 var future = new Date();
 future.setDate(future.getDate() + 30);
 console.log(future);
Now I want future.toString() or future.toIsoFormatString() to display the date in just the YYYY-MM-DD format.
 
     
    