最好是中文的。
相关帖子
-
Achuan-2 •订阅者 先知
用这个,之前的代码对周日处理有问题
/{{now | date "2006.01"}}/{{now | date "2006-01-02"}} {{last (slice (list "星期日" "星期一" "星期二" "星期三" "星期四" "星期五" "星期六" ) 0 (add (mod (div (now.Sub (toDate "2006-01-02" "2021-05-02")).Hours 24) 7 ) 1))}}
-
scottsvrain •作者
谢谢。年月日是正常显示的。后边的 {{last (slice (list "周一" "周二" "周三" "周四" "周五" "周六" " 周日") 0 (mod (div (now.Sub (toDate "2006-01-02" "2021-05-02")).Hours 24) 7))}} 显示成了 no value。
1 回复 - 其他回帖
-
用这个,之前的代码对周日处理有问题
/{{now | date "2006.01"}}/{{now | date "2006-01-02"}} {{last (slice (list "星期日" "星期一" "星期二" "星期三" "星期四" "星期五" "星期六" ) 0 (add (mod (div (now.Sub (toDate "2006-01-02" "2021-05-02")).Hours 24) 7 ) 1))}}
1 回复 - 查看全部回帖