vars date format #1968
Closed
Dmitriy147
started this conversation in
General
Replies: 2 comments 1 reply
-
..windows11pro.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello ! version: 3
vars:
DATE: '{{ now.Format "20060102" }}'
tasks:
default: echo {{.DATE}} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I need to get in my taskfile variable with formatted date but every attempts are with errors!
Only one variant is working fine:
vars: {{ now }}
The output is: 21-12-2024 15:45:56...
I need to get date formatted like: 20241221
Could anyone help with example string?
Beta Was this translation helpful? Give feedback.
All reactions