I am trying to convert a string value into a JavaScript Date format but I don't seem to find a simple way to do it without having to use additional library such as datejs
var dateString = "20131120"; var date = new Date(dateString); console.log(date); // I need to add an additional day to the original string var newDate = date.getFullYear() + '-' + (date.getMonth()+1) + '-' + (date.getDate()+1); console.log(newDate); Any hints are much appreciated.