📜  将 utc 格式转换为仅日期 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:24.192000             🧑  作者: Mango

代码示例1
var UTCdate = new Date('4/29/2021 3:22:46 PM UTC');
var onlyDate = UTCdate.getDate();
console.log(onlyDate); //Gives 29

//Please don't forget to upvote if this answer helped you ! Have a nice day !!