How to calculator date with ion-datetime


when i use


I get value date type string but i want calculator this should i parseInt this . But when i parseInt this value i get just year . Thanks for reading my question!


I think it should be converted to Date so you can calculate whatever you want.
var date = new Date(stringDate);