当前日期时间格式化:
[[Now.toISOString().substring(0,10)]] [[0.concat(Now.getHours()).slice(-2)]][[Now.toISOString().substr(13,6)]]
Now.toISOString() :2021-08-30T05:42:47.794Z
日期 [[Now.toISOString().substring(0,10)]]
截取(0~10),即第1位~第10位:2021-08-30
时间 [[0.concat(Now.getHours()).slice(-2)]][[Now.toISOString().substr(13,6)]]
小时: [[0.concat(Now.getHours()).slice(-2)]],获取当前的小时与0拼接
获取最后两位,即:11或者01,保持格式是两位数。
分钟秒:[[Now.toISOString().substr(13,6)]]
从2021-08-30T05:42:47.794Z第14位开始截取,截取6位,即:42:47
时间 =小时+分钟秒=15:42:47