How to get current date in ionic

I want to get Todays date in yyyymmdd format
i try this using this code :
var CurrentDate = new Date();
this.day = CurrentDate.getDate();
this.month = CurrentDate.getMonth();
this.year = CurrentDate.getFullYear();

but I cant arrange in this yyyymmdd format