DATE / TIME STAMP

SPABO 04 Jun, 2010
Hello
I ound in the forumtopics the following code for the HTML form
<input type='hidden' name='recordtime' value='<?php echo date('Y-m-d H:i:s'); ?>' />


In the email template I added {recordtime} and works fine, but...

Would it possible to "split" thh date and time ?
eg :
name ="recortime1" and get the date as m-d-Y
and
name ="recortime2" and get the time as H:i:s
SPABO 04 Jun, 2010
As time flies and I just tried this

<input type='hidden' name='verstuurd' value='<?php echo date('m-d-Y'); ?>' />
<input type='hidden' name='tijd' value='<?php echo date('H:i:s'); ?>' />


In the email
{verstuurd} and {tijd}

Happy again...😀
This topic is locked and no more replies can be posted.