I use datepicker c angular material. Here\'s the code:
6条回答 无人及你 (楼主) 2021-01-12 13:18 I solve this problem by converting datepicker date value to UTC. Here is example: const d = new Date(); const date = Date.UTC(d.getFullYear(), d.getMonth(), d.getDate()); Maybe it's not elegant way to fix it but help me 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
I solve this problem by converting datepicker date value to UTC. Here is example:
const d = new Date(); const date = Date.UTC(d.getFullYear(), d.getMonth(), d.getDate());
Maybe it's not elegant way to fix it but help me