Skip Navigation

Programmatic Marketing Content

control-j is the search shortcutj
Introduction to Programmatic Marketing Content
AMPscript
Guide Template Language
Server-Side JavaScript
Server-Side JavaScript Syntax Guide
Account Functions
AccountUser Functions
Content Area Functions
Data Extension Functions
DateTime Functions
LocalDateToSystemDate
Now
Retrieve
SystemDateToLocalDate
Delivery Profile Functions
Email Functions
Events Functions
Filter Defintion Functons
Folder Functions
HTTP Functions
List Functions
Portfolio Functions
Query Definition Functions
Recipient Functions
Send Classification Functions
Send Functions
Sender Profile Functions
Subscriber Functions
Template Functions
Triggered Send Functions
Utilities Functions
Platform Functions
Server-Side JavaScript Sample Code
Use Server-Side JavaScript with AMPscript
Use Server-Side Javascript via WSProxy with the SOAP API
Server-Side JavaScript/Server-Side JavaScript Syntax Guide/DateTime Functions/Now

Now

Overview

Returns the current system date and time

Syntax

Now(1)

Function Properties

Ordinal Type Description
1 boolean Indicates whether to retain the time of the send. A value of 1 or true retains the time, and a value of 0 or false does not retain the time.

Example

In this sample code, the variable receives the value of the current system time.

var currentTime = Now();
Last Updated: Jun 8, 2021

Salesforce logo