Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables: Add Date Type #87

Open
NightB1ade opened this issue Nov 24, 2021 · 1 comment
Open

Variables: Add Date Type #87

NightB1ade opened this issue Nov 24, 2021 · 1 comment
Labels
feature New feature or request

Comments

@NightB1ade
Copy link

Is your feature request related to a problem? Please describe.
N/A

Describe the solution you'd like
The addition of a Date type variable.

Describe alternatives you've considered
I have considered using ISO formatted strings, however future calculations on this would be more troublesome.

Additional context
I expect there will also be the need to be able to specify the output format of the date variable when used in presentation strings as a future requirement. For example "dd/mm", "dd/mm/yyyy", or "mm/dd/yyyy".

@NightB1ade NightB1ade added the feature New feature or request label Nov 24, 2021
@PhoenixWyllow
Copy link
Contributor

this feature is available using Cottle and the custom getdatetime function.
Example:
{getdatetime("yyyyMMdd")}
Note: MM is for month, mm is for minutes.

For formatting options instead of "yyyyMMdd", here are some links from the dotnet docs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants