---
schema_version: "1"
id: 32bd71cd975e7c80d84d3e3c7ee12e0f91c4a15be7510d313c60bcb877b8bdf3
title: Now
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformDateTimeNow.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformDateTimeNow.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cdc64883233571548de1bf8d205f51d49a9cd5e1de4f085ef744b25bedbe5edb
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# 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

| Ordinal | Type    | Description                                                                                                                                                                                                                                                                                    |
| ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `1`     | Boolean | Indicates 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.

<!-- prettier-ignore-start -->

```js
<script runat="server">
  /* Get the current system time */ 
  var timestamp = Platform.Function.Now(); 
  
  /* Output the result */
  Platform.Response.Write("The time is " + timestamp);
</script>
```
<!-- prettier-ignore-end -->

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.

```
The time is Tue, 05 Aug 2025 12:21:18 GMT-06:00
```
