I am trying to create a Smart Capture form in a Cloud Page. I would like to populate a hidden field with the current date. Can you use Ampscript to do this?

2 Answers 2


You should be able to use the NOW( ) AMPScript function to achieve this. However, there is currently a known issue that doesn't allow you to simply use the %%=NOW()=%% in a hidden field's value. A workaround for this is to write your code without using an equal symbol.

For example, you would want to use something along the lines of the below. In your CloudPage, define the variable as such:

Var @date
Set @date = NOW()

Then in your hidden smart capture field, declare this variable like this:


Further info on the NOW( ) Function can be found here: http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/ampscript_syntax_guide/datetime_ampscript_functions/#Now

  • Excellent. I actually submitted a support ticket from this and was told this was a known issue and would be resolved in a future release!!!! Mar 2, 2016 at 23:46
  • 2
    I was able to just use %%[ OUTPUT(NOW()) ]%%. WOOT!!! Mar 2, 2016 at 23:49

I've been using %%=Now()=%% and it seems to work fine

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .