erp-el-element/utils/time.js

21 lines
470 B
JavaScript

/*
* @Author: your name
* @Date: 2021-08-17 11:56:32
* @LastEditTime: 2021-08-18 15:31:56
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \aiguo_erp_vue\src\utils\time.js
*/
//毫秒
export function start_time() {
var now = new Date();
var year_4 = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var time3 = Date.parse(`${year_4}-${month}-${date}`)
return time3
}