GetSendTime

Returns a timestamp for the beginning or end of a list, data extension (DE), or manual send at the job or individual subscriber level.

The value that the function returns is in Central Standard Time (CST) without daylight saving time.

Availability

<table> <tr> <td>Marketing Cloud Engagement</td> <td>✅ Yes</td> </tr> <tr> <td>Marketing Cloud Next</td> <td>❌ No</td> </tr> </table>

Syntax

GetSendTime(boolAllSubscribers)

The GetSendTime() function has one parameter:

  • boolAllSubscribers (boolean): If true, the function returns the job publish time or time at which the job started. If false, the function returns the timestamp at which the send completed for the individual subscriber. The default value is false.

Usage

To return the time at which the send completed for an individual subscriber, call the GetSendTime() function without any parameters.

<p>%%=GetSendTime()=%%</p>

You can also return the time at which the job started or was published by passing the boolAllSubscribers parameter.

<p>%%=GetSendTime(true)=%%</p>

This table shows how the results that the Now() and GetSendTime() functions return vary in different situations.

Function During a send After a list, DE, or manual send After a triggered or journey send
GetSendTime() Current system time Individual subscriber send completed time Individual subscriber send completed time
GetSendTime(true) Current system time Job start time Job publish time
Now() Current system time Current system time Current system time
Now(true) Current system time Job start time Job publish time

When used in web contexts such as "View as a Web Page" or HttpGet(), the GetSendTime() function returns the job publish time or the time at which the job started, regardless of the value of the boolAllSubscribers parameter.

See Also