Date 类型使用自 UTC 1970 年 1 月 1日 午夜 开始经过的毫秒数来保存日期。
创建日期对象
var now = new Date();//获取当前日期
Date.parse ( ) 接受一个表示日期的字符串参数,返回相应毫秒数。这个日期格式通常因地区而异。
实际上直接将日期字符串传给Date构造函数,也会后台先调用一下Date.parse(), 所以下面两条等价
var someDate = new Date(Date.parse("May 25, 2004"));
var someDate = new Date("May 25, 2004");
Date.UTC() 参数分别是 年份、月份(0-11)、天(1-31)、小时(0-23)、分钟、秒、毫秒数。省略的参数自动填充为0(天数为1)
同样这个UTC参数也可以直接传给Date构造函数
// 2005年5月5日下午5:55:55
var allFives = new Date(Date.UTC("2005, 4, 5, 17, 55, 55"));
var allFives = new Date("2005, 4, 5, 17, 55, 55");
Date.now() 返回当前时刻的那个毫秒数
继承的方法
Date的toLocaleString() 会返回日期和时间(会包含AM或PM) 但不包含时区信息
toString() 返回带有时区信息的日期时间
Chrome
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAb0AAABKCAYAAAAvzopRAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABCNSURBVHhe7Z2/q1TXFsfzV6RI6Z+QIp11QlKZMrxCrAJpUoU0ViFFuvcKFSRgBEMkXQhWz6egSQwEeYmQQhNQeFGDv1HQKITz8hnme1muu/Y+Z8ZR5ma+H9jM2T/W2mvvc2Z97x69d14ajDHGmA3BomeMMWZjsOgZY4zZGCx6f3O+//774e233x7u3Lkzb3l2fvnll2H//v3Dw4cPZ3V8v//++yudwxhjngel6J0/f364devWvLa+fPnll7MylZysnxf4RwR27dq1kOAwjvHYUT755JN5z/Kxr1r08LNv375ZPBHmYc3Pe2+NMeZZ2CZ6jx49Go4cOTIcPnx4uHbt2rx1PVlX0RMIxNQTkIQS8ah40bG3QIhbe97rM8aYdaA86d2/f384duzYcOjQoeHKlSvz1nFI7iQ+kjMnld27d2+dCJTUdYpRciTJxxMNVG0RfOJbvvJc2Ks9nn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uD2m7k5nWJqmz6xf/1Wiye7wdDqt7rbWcCatfrDbU4sp97fupMG7h6TDFPEnZ2orsFPO+b59uJy3burkntLQW6je2CGfPjMSLasp47ufAtLB/Wq5Wl5A2l5/lU6fWPjmezcYEL4Is3WyD5FPpfy3PjLSvd7bdOk/qcLgdjm67l3vGVV7KTPvHupeUY9V+KbTBijPzdMzHa9cXHpPHE7OByFFuhmmL5eSPRTfOWuJ7RRl4fjFLfmPbo3ZuIW6DH1jjztR3x1WflQeZj5G6aAdNKgNXBrh2UJGo2QY5f9zX7hdPUcx2X29te1zPSWjzo4CxvffyfZVuk9PknDRr615aH2u5tlobrLiWPOH5aX6U8c3dD2f7iwy5IUo3gnUssFeUgTT/PC8t773lNcw4stlLC35gRTGyf+O/tHYR1roPtbqEtHyQttfFal9D2yPMNnjpxnnJ9bBnxypJX+9re6hnfJbks4jZH/P1DfeLnJ/2gXIvSb284NNN4uxrW26DFWfnCb2w6cO/c8nZuhHqN8leUQbS/PO8tLz3ltciJ8m7XTIyqFYCGQf2Uo5WrpIWCSTQUt8Y4/ytLzhWG8YZc5zXPpFEfb237at2SVwm5oggwaTmxr2kHKv1S6kNVpx1DLqhSczCJGf5+VCeVsxudjAPjlyE6b6UvX5+vbW8iYYbfjXQy6hS9mRtUvNU6uIHdrkv6pTaV2n3qlzBaoPkV6mnmmdGnOfutst5y0wzrttawlqaxJfuJe1YVq/mNhhx5jHohWYxy0xZpPx8M2a5oZa3en5rvKG81MYYbfAsx25dGdPg2FteEFMSV8qzeUAodYkHsR+kSrpZl7TtshVlmmDnWR3oJYkW2+BIjin1VPO0+3pf24X8WoRy1xLW0iQ2a1sNo1/MNjT358b6wJPQLGYAAHgaEDMAQGcgZgCAzkDMAACdgZgBADoDMQMAdAZiBgDoDMQMANAZiBkAoDMQMwBAZyBmAICuGIb/A/V59BfubtlYAAAAAElFTkSuQmCC" alt="" />
Date.valeuOf() 会返回日期的毫秒表示,因此日期大小是可以比较的
格式化方法
也是因浏览器而异 最后的两个结果一样,但推荐使用toUTCString().
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAADfCAYAAADvJIiwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACj6SURBVHhe7Z2xjxVH1r79VzhwyJ/gwBmxLTvCoeUAEVlyspHlhMhysNluAEjz+RNGwjLabLUiWhYksI31s9Da7DpgbImRdmewGDAjRgvLfLL656f3vnfPPVPV3Xdo8G3P+0il7j5V59SpurfeLnq4977QGGOMmSQWcGOMmSgWcGOMmSgWcGOMmSgW8Anwhz/8ofnNb37TPHr0aGZ5eohJET/++GPbB0djzDRYEPAbN2409+7dm12tLll8ukD0EKYjR4605ejRo8133303q+2GdidPnlxKOL/88st5XxSuxTJ5R/AZU8DJqRSvZjfGrCZzAX/8+HFz9uzZZm1trdna2ppZV5NlBRwRlmhzPHbs2CARX1bAaX/ixInqLvagAj4m5EaOtfH/9re//cVzNMYMY2EH/vDhw+b8+fPNmTNnmo2NjZm1H0SBhY/Y5V0u4hd3wBIHdnv4REq2CDGJrVi5L/xlf/PNN9u8soBDFKnoQ+E656win1yPD9BHScD78ibuqVOn2pyp0y6YONkmaP/xxx/P40XRzWPKc9Q3x8v+q8MY88uw7xk4C/fChQvN6dOnm/X19Zm1GwmNRISjRCKKpYQPEUEoECFsEljaRSGqUWqHfxRP+qCv+/fv7xNwfEsihi8+ilETM3wl2rSNO1rqEM1S/Nr4sOmGAzE+lPKgjUQ9jr2UT+wzx85kf2PM6jKagEfhQyAQiijOQiImUbp58+Zc1LF3iYtQjIj6FMqJx0FdAo497o6jkCrHKJzUaVesEne4gvjUxfGU8oaaXZTyiEIc55/yNAJees2MMavJaI9QlhVw+Vy8eLEt586da3fkQ4SjJHjLCLhEjfxoo1h5HPiUBDy26YKcaCv/Ut5Qs4tSHlGIY04ak24usX/oE/BlxmeM+WUZ5Y+YedFHMZVYAvXsXqlHVBAlRHtzc7M9P378+D6hjTtiQ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dnZ3GxcXFxWV6xTtwY4yZKBZwY4yZJE3z/wE5moktfCYd2QAAAABJRU5ErkJggg==" alt="" />
日期/时间组件方法
直接取得或设置特定值
get/setTime()
get/set(UTC)FullYear()
get/set(UTC)Month()
get/set(UTC)Date()
get(UTC)Day()
get/set(UTC)Hours()
get/set(UTC)Minutes()
get/set(UTC)Seconds()
get/set(UTC)Milliseconds()
getTimezoneOffset 返回本地与UTC时间相差的分钟数
- javascript Date类型 学习笔记
1 创建一个新的日期对象,如果不带参数,则对象自动获得当前的日期和时间 var d = new Date() 2 如果需要指定特定的日期,则可以通过Date.parse() 或者 Date().UTC ...
- 从头开始学JavaScript (十三)——Date类型
说明:UTC:国际协调日期 GMT:格林尼治标准时间 一.date类型的创建 使用new操作符和Date()构造函数 var now=new Date(): 传入参数:Date.parse()和Dat ...
- JavaScript高级编程——Date类型
JavaScript高级编程——Date类型 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" ...
- JavaScript高级程序设计之Date类型
ECMAScript 中的 Date 类型是在早期 Java 的 java.util.Date 类基础上构建的. Date 类型使用自 UTC (国际协调时间)1970年1月1日午夜(零时)开始经过的 ...
- 《JavaScript高级程序设计》读书笔记 ---Date 类型
ECMAScript 中的Date 类型是在早期Java 中的java.util.Date 类基础上构建的.为此,Date类型使用自UTC(Coordinated Universal Time,国际协 ...
- Javascript高级编程学习笔记(14)—— 引用类型(3)Date类型
除了前两天介绍的Object.Array类型,Date应该就是JS中最常用的引用类型了 先介绍一下Date类型,该类型使用在Java的 java.until.Date 类的基础上构建的 使用UTC 1 ...
- 【JavaScript】JS将Java的Timestamp转为Date类型
遇到一个小需求,由于要填充日期插件里的数据,前台要把java后台传来的Date类型的数据转成YYYY-MM-DD格式的时间数据.通过json传输,Java的Date类型的数据自动转成了时间戳,例如 “ ...
- JavaScript中的Date类型
ECMAScript中的Date类型是在早起Java中的java.util.Date类基础上构建的.为此,Date类型使用自UTC(Coordinated Universal Time,国际协调时间) ...
- java web中日期Date类型在页面中格式化显示的三种方式
一般我们经常需要在将服务器端的Date类型,传到页面进行显示,这就涉及到一个如何格式化显示Date类型的问题,一般我们有三种方式进行: 1)在服务端使用SimpleDateFormat等类格式化成字符 ...
随机推荐
- ado.net 之 oracle 数据库
ado.net 操作oracle 数据库 跟操作mssql 的原来基本一样.只是使用不同的命名空间而已.下面举几个例子: 一. C#读取oracle数据库的表格 ///ado.net 读取table ...
- 激活函数——sigmoid函数(理解)
0 - 定义 $Sigmoid$函数是一个在生物学中常见的S型函数,也称为$S$型生长曲线.在信息科学中,由于其单增以及反函数单增等性质,$Sigmoid$函数常被用作神经网络的阈值函数,将变量映射到 ...
- 集合-Collections工具
1.定义 Collections是集合类的一个工具类,它提供了一系列静态方法用于对容器中的元素进行排序和搜索等一系列操作. 注:Collection是一个集合接口,而Collections是一个有着操 ...
- pythonのdjango Session体验
Session Django中默认支持Session,其内部提供了5种类型的Session供开发者使用: 数据库(默认)缓存文件缓存+数据库加密cookie1.数据库Session Django默认支 ...
- 解析电子墨水屏技术(工作原理与LCD的区别)【转】
转自:https://blog.csdn.net/weixin_42509369/article/details/84646808 阅读电子书早已成为大家生活中一部分,方便轻巧的电子版书籍更便于携带, ...
- codeforces 1017C - Cloud Computing 权值线段树 差分 贪心
https://codeforces.com/problemset/problem/1070/C 题意: 有很多活动,每个活动可以在天数为$[l,r]$时,提供$C$个价格为$P$的商品 现在从第一天 ...
- Beta 冲刺(2/7)
目录 摘要 团队部分 个人部分 摘要 队名:小白吃 组长博客:hjj 作业博客:beta冲刺(2/7) 团队部分 后敬甲(组长) 过去两天完成了哪些任务 整理博客 做了点商家数据表格 接下来的计划 做 ...
- SpringCloud+ZUUL跨域请求中的OPTIONS请求处理
目前项目结构是VUE做前端,后端采用微服务架构,在开发时前端需要跨域请求数据,通过CorsConfig配置解决了简单跨域请求需要.但当需要在请求的header中增加token信息时,出现了请求失败的情 ...
- Fiddler模拟自动响应数据
Fiddler模拟自动响应数据 定位到要修改的部分 2.将返回的数据保存到本地,保存成网页,并修改响应数据 找到修改的部分,修改之 3.再次请求刷新首页,将工具定位到autoresponder将接口加 ...
- thymeleaf的onclick标签传参异常
转自https://my.oschina.net/u/2312080/blog/2878183 异常 严重: Servlet.service() for servlet [DispatcherServ ...