![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
时间处理
Wudide_xiaobai
目前刚入行一年的小白,但是是无敌的。
展开
-
时间增减
1.时间的标准加减 SimpleDateFormat simpleDateFormat = new SimpleDateFormat(“yyyy-MM-dd”); Date date = new Date(); Calendar instance = Calendar.getInstance(); instance.setTime(date); instance.add(Calendar.YEAR...原创 2019-05-18 11:04:42 · 275 阅读 · 0 评论 -
Js时间转换以及时间加减
JS中时间转换 /开始时间转换/ var date = new Date(this.startTime); var date_value=date.getFullYear() + ‘-’ + (date.getMonth() + 1) + ‘-’ + date.getDate();原创 2019-05-18 11:22:10 · 632 阅读 · 0 评论