如何将UTC字符串格式化为MMMM DD,yyyy in JavaScript for Kore.ai
我拥有的字符串:2021-11-02T00:00:00.000Z。 我需要将其显示为2021年11月2日。
有人可以帮助我吗?
The string I have : 2021-11-02T00:00:00.000Z .
I need to display this as November 02, 2021.
Could someone please help me with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在香草JS中做这样的事情
You can do something like this in vanilla JS
您将要使用日期类提供的内容,这是一个完整的示例。
You would want to use what Date class has provided, here's a complete example.