Because of the issues with the limited date functions available in Ionic, I read many posts with people advising to use an external lib too, https://momentjs.com/.
Also, you might wanna have a look at this thread, which helped me a lot with date issues.