How to Determine 1 Year Ago from now or 1 Year Later Date from Now :: Angular Typescript

0
825
    oneYearFromNow:Date = new Date(new Date().setFullYear(new Date().getFullYear() + 1))
    oneYearAgo:Date = new Date(new Date().setFullYear(new Date().getFullYear() - 1))
    

LEAVE A REPLY

Please enter your comment!
Please enter your name here