Hidden Date Field

Grizzled 22 Apr, 2011

Can I create a hidden date field that records the date the form was submitted?

My client would like it to be in the format of month/day/year.

I know there is an automated time/date field, but the client just needs the date in the proper format so it imports into excel properly.

Thanks, Chuck
GreyHead 23 Apr, 2011
Hi Chuck,

<input type='hidden' name='date' id='date' value='<?php echo date('m/d/Y'); ?>' /> 

Grizzled 25 Apr, 2011
Thanks for the quick response, works perfectly😀
This topic is locked and no more replies can be posted.