更改时区格式
使用TolocalString()将我的日期时区置于我的日期时区之后,
new Date(dateParam).toLocaleString('en-US', { timeZone: "Australia/Sydney" })
我得到了此字符串 5/25/2022,8:44:46 pm
,我如何从这种格式转换为默认 new Date( )
fromat 星期二7月5日2022 23:22:37 GMT+0300
,能够使用日期方法(示例:: todateString(),getluceAr()
)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在下面的示例中添加两个参数数据和及时的参数
add to your solution two parameters dataStyle and timeStyle like in the example below