Verification in progress Differs from official docs Test scripts included

Syntax

Now()  →  date
0 arguments — exactly

Parameters

None. An email that passes any argument, such as Now(1), Now(true), Now("1") or Now("spring"), cannot be saved: the content API answers HTTP 400 with “The AMPscript syntax isn’t valid”.

Example

%%=Now()=%%

Renders a value like 2026-11-22T15:28:39.

Format it for a fixed shape:

%%=Format(Now(), "yyyy-MM-dd")=%%

Renders a 10-character date such as 2026-11-22.

Return value

date — the current date and time. Printed on its own it comes out in ISO form, date and time joined by a T, with no time zone suffix.

Behaviour

The value is a date. DateDiff(Now(), DateAdd(Now(), 3, "H"), "H") gives 3, and DatePart(Now(), "Y") gives the current year.

It is fixed for the whole render. A value saved in a variable at the top and a fresh Now() further down are 0 minutes apart, and two calls of FormatDate(Now(), "ffffff") printed the identical value. That pattern did not produce fractional seconds: it printed the full ISO timestamp.

No arguments. Every argument form is rejected at save, including two arguments (Now(1, 1)).

The time zone of the value and the send-time behaviour were not tested in Next.

Show Next test script
<!-- Marketing Cloud Next test script for Now. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[2026-11-22T15:28:39] got=[%%=Now()=%%]</p>
<p>c2 expect=[10] got=[%%=Length(Format(Now(),"yyyy-MM-dd"))=%%]</p>
<p>c3 expect=[3|2026] got=[%%=DateDiff(Now(),DateAdd(Now(),3,"H"),"H")=%%|%%=DatePart(Now(),"Y")=%%]</p>
<p>c4 expect=[0] got=[%%[ SET @r2now9 = Now() ]%%%%=DateDiff(@r2now9,Now(),"MI")=%%]</p>
<p>c5 expect=[2026-11-22T20:58:04|2026-11-22T20:58:04] got=[%%=FormatDate(Now(),"ffffff")=%%|%%=FormatDate(Now(),"ffffff")=%%]</p>

Show calls that fail in Next (one email each)
<!-- Run each call below in its own Next email: one of them in a combined email
     would stop the whole preview or block the save. -->

<!-- email 1: expect that the save is rejected (HTTP 400) -->
%%=DateDiff(Now(),Now(1),"MI")=%%|%%=DateDiff(Now(),Now(0),"MI")=%%

<!-- email 2: expect that the save is rejected (HTTP 400) -->
%%=DateDiff(Now(),Now(true),"MI")=%%|%%=DateDiff(Now(),Now(false),"MI")=%%

<!-- email 3: expect that the save is rejected (HTTP 400) -->
%%=DateDiff(Now(),Now("1"),"MI")=%%|%%=DateDiff(Now(),Now("0"),"MI")=%%|%%=DateDiff(Now(),Now("true"),"MI")=%%|%%=DateDiff(Now(),Now("false"),"MI")=%%

<!-- email 4: expect that the save is rejected (HTTP 400) -->
%%=DateDiff(Now(),Now("spring"),"MI")=%%

<!-- email 5: expect that the save is rejected (HTTP 400) -->
%%=Now(1,1)=%%

Differs from official docs

  • The optional argument is refused at save. The reference documents Now(true) for the send time. In Next any argument, including true, 1 and their quoted forms, makes the email unsavable (HTTP 400, “The AMPscript syntax isn’t valid”). Card

Availability & differences

PlatformAvailable
Marketing Cloud EngagementYes
Marketing Cloud NextYes, from API 67.0

See also