# Timestamp in email

**URL:** <https://community.f5.com/t/timestamp-in-email/2174>\
**Category:** Technical Forums\
**Tags:** tmsh, tmos, application-delivery\
**Created:** [August 16, 2017, 8:29am UTC](https://community.f5.com/t/timestamp-in-email/2174 "2017-08-16T08:29:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![preslav\_ilevski](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@preslav\_ilevski](https://community.f5.com/u/preslav_ilevski)\
**Post date:** [August 16, 2017, 8:29am UTC](https://community.f5.com/t/timestamp-in-email/2174/1 "2017-08-16T08:29:21Z")

</div>

Hi f5 team,

Can you help us with proposal how can we add timestamp in the body of the mail when configure /config/user\_alert.conf?

---

<div class="post-metadata">

**Author:** ![Jad\_Tabbara\_J1](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@Jad\_Tabbara\_J1](https://community.f5.com/u/Jad_Tabbara_J1)\
**Post date:** [August 16, 2017, 8:54am UTC](https://community.f5.com/t/timestamp-in-email/2174/2 "2017-08-16T08:54:31Z")

</div>

Hello Preslav,

You can use the shell command “date” to get the local time before sending the mail.

example :

```tcl
timestamp=`date`

```

Then you can use the $timestamp variable

It will display something like that by default :

```tcl
Wed Aug 16 10:50:50 CEST 2017

```

You can also customize the date as you want using arguments with command “date”

Regards
