# Update custom fields with current date

**URL:** <https://forum.mautic.org/t/update-custom-fields-with-current-date/7789>\
**Category:** Product Support\
**Created:** [March 4, 2017, 3:52pm UTC](https://forum.mautic.org/t/update-custom-fields-with-current-date/7789 "2017-03-04T15:52:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [March 4, 2017, 3:52pm UTC](https://forum.mautic.org/t/update-custom-fields-with-current-date/7789/1 "2017-03-04T15:52:35Z")

</div>

Hello, i added 2 custom field:

- day\_of\_offer  
- day\_of\_transaction  
  
  
  
i need to update fields in this way:  
- the first one with the date when i send an email  
- the second one with the date when a lead visits a page  
  
  
  
i need something like curdate() function of php  
  
  
  
 ![cattura.jpg](http://landing.cittanet.net/offerte-bia/images/cattura.jpg)

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [March 4, 2017, 3:52pm UTC](https://forum.mautic.org/t/update-custom-fields-with-current-date/7789/2 "2017-03-04T15:52:35Z")

</div>

Hello, i added 2 custom field:

- day\_of\_offer
- day\_of\_transaction

i need to update fields in this way:

- the first one with the date when i send an email
- the second one with the date when a lead visits a page

i need something like curdate() function of php

![](http://landing.cittanet.net/offerte-bia/images/cattura.jpg)

---

<div class="post-metadata">

**Author:** ![rodrigocvb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rodrigocvb/32/510_2.png) [@rodrigocvb](https://forum.mautic.org/u/rodrigocvb)\
**Post date:** [August 15, 2017, 8:11pm UTC](https://forum.mautic.org/t/update-custom-fields-with-current-date/7789/3 "2017-08-15T20:11:34Z")

</div>

@Francesco did you find any solution here? I’m looking for solving this same question.
