Forums

Is there a Field for Date?

galbur 27 Dec, 2011
Hi

Is there a Field to use in brackets within an E-Mail Message similar to {IPADRESS} to show the current Date? {DATE} does't work.

Thank You
Best regards
Chris
GreyHead 27 Dec, 2011
Hi Chris,

Add a Custom Code action before the Email action with this code:
<?php
$form->data['date'] = date('m-d-Y');
?>
Then you can use {date} in the template.

Bob
This topic is locked and no more replies can be posted.