如何从打字稿或angular4 +中的当前日期计算旧日期

问题描述 投票:0回答:1

如何从打字稿或angular4的当前日期中获取90天的日期

javascript函数:

new Date()。setMonth(new Date()。getMonth()-6)

不适用于角/打字稿

angular typescript date datetime difference
1个回答
0
投票

这是角度/打字稿的参考

© www.soinside.com 2019 - 2024. All rights reserved.