javascript - Javascript toISOString() 不同格式
问题描述
根据Mozilla和我引用
The toISOString() method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectively). The timezone is always zero UTC offset, as denoted by the suffix "Z".
I always see YYYY-MM-DDTHH:mm:ss.sssZ format when I invoke method like
new Date().toISOString()
So in which case
new Date().toISOString()
will return format like
YYYYYY-MM-DDTHH:mm:ss.sssZ ?
Can anyone please give it with example?
解决方案
推荐阅读
- powershell - 当在 db2 命令中使用时,PowerShell tee-Object 在输出中生成空行
- jquery - 使用 jquery 基于 optgroup 加载 Bootstrap-Multiselect
- php - 我正在尝试设置我的 dvwa,它显示一条错误消息..“无法连接到 MYSQL 服务”
- python - 使用beautifulsoup 和selenium webdriver 需要帮助网络抓取表
- dynamics-crm - 从谷歌日历更新到动态 crm 中的约会未同步
- javascript - 在 JSP 应用程序的 Javascript 中调用 Java 函数
- tkinter - 网格管理器不会在左上角放置框架
- c# - C# 格式化字符串
- python - MongoDB (Pymongo) 使用 $group 和 $or 是相同的语句
- netmiko - 用于“inc”短语的 Netmiko 的 TextFSM 模板