# Add Execution Date

**URL:** <https://community.jenkins.io/t/add-execution-date/9879>\
**Category:** Community\
**Tags:** question\
**Created:** [September 28, 2023, 6:28pm UTC](https://community.jenkins.io/t/add-execution-date/9879 "2023-09-28T18:28:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidG](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@DavidG](https://community.jenkins.io/u/DavidG)\
**Post date:** [September 28, 2023, 6:28pm UTC](https://community.jenkins.io/t/add-execution-date/9879/1 "2023-09-28T18:28:32Z")

</div>

I need to create a new environment variable to add it to jenkins and this allows me to use it within any script or HTML content to update the start date of a job compilation.

I am defining in the global configuration of Jenkins creating new variable, within Environment variables I add the name and value of the variable to create

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/1/18c93140378a0cc188fff2f9b37e27e9bd9e0fc4.png)

Also (through plugin) I define an Inject environment variables to the build process, this I do within the configuration of a job.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/7/72e6f1e3846d1adb048689c951ee90f807553a50.png)

But when I put the value of the created variable, this does not bring me the result of the value of the variable, it only brings me the same Code without changes.  
Texto en cursiva

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/8/893e672ff2cbfecc57b792e569fa201bd5c80826.png)

Finally the content that I add comes to me in this way, it does not throw values such as the date of execution of compilation. Am I doing something wrong?  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/8/840f94c6ce54fe91b6b08d361867e3644f8ad5e8.png)

TNKS

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [September 28, 2023, 6:50pm UTC](https://community.jenkins.io/t/add-execution-date/9879/2 "2023-09-28T18:50:36Z")

</div>

There is no support for defining environment variables that way as far as I know.

---

<div class="post-metadata">

**Author:** ![DavidG](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@DavidG](https://community.jenkins.io/u/DavidG)\
**Post date:** [September 28, 2023, 7:02pm UTC](https://community.jenkins.io/t/add-execution-date/9879/3 "2023-09-28T19:02:58Z")

</div>

I understand, but there is no way I can configure for the content of the email notification to inform me of the start and end time of a build. TNKS
