---
title: "Code Generation: Date in Code Template"
slug: "code-generation-date-in-code-template"
updated: 2023-11-18T11:37:51Z
published: 2023-11-18T11:37:51Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.curiositysoftware.ie/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Generation: Date in Code Template

We have added the ability to push the current date when generating test scripts.

There are two new keywords:

1. {{{DateTime}}} - This prints the current date and time in the format (yyyy-MM-dd HH:mm:ss).
2. {{Date}}} -  This prints the current date in the format (yyyy-MM-dd).

Example usage:

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1700307465701.png)
