I would like to get today's date with the format below in React:
    "2019020420"
I am able to get the current date with this function. How do I modify this such that it will give me the above date format?
     getCurrentDate() {    
            var tempDate = new Date();
            var date = tempDate.getFullYear() + '-' + (tempDate.getMonth()+1) + '-' + tempDate.getDate() +' '+ tempDate.getHours()+':'+ tempDate.getMinutes()+':'+ tempDate.getSeconds();
            const currDate = date;
            return currDate;       
        }
 
     
     
     
    