Now

Returns a date-time value. This function can return either the current system time or the time when a send or activity was initiated.

Syntax 

Now(1)

Properties 

OrdinalTypeDescription
1BooleanIndicates whether to return the time when the send or activity that initiated this function occurred. If the value is true, the function returns the time of the send or function. If the value is false, the function returns the current system timestamp. The default value is false.

Example 

To use this function, call it with or without parameters. If you call it without providing any parameters, its value equals the current date and time.

1<script runat="server">
2  /* Get the current system time */ 
3  var timestamp = Platform.Function.Now(); 
4  
5  /* Output the result */
6  Platform.Response.Write("The time is " + timestamp);
7</script>

The function outputs the current timestamp. In this example, the Platform.Response.Write automatically formats the output as an RFC 2822-compliant date-time string.

1The time is Tue, 05 Aug 2025 12:21:18 GMT-06:00