Syntax

Platform.Function.Now()
0 arguments

Description

Returns the current server date/time as a string in a format like "3/30/2026 2:45:23 PM". The time is in the SFMC account’s configured timezone.

Examples

var now = Platform.Function.Now();
Write("Server time: " + now);

// Store a timestamp in a DE
Platform.Function.InsertData("Log", "Timestamp", Platform.Function.Now(), "Event", "page_view");

// Use with DateAdd for expiry calculations
var expiry = Platform.Function.DateAdd(Platform.Function.Now(), 30, "D");
Write("Expires: " + expiry);

Notes

For time-sensitive calculations, note that Now() returns the SFMC server time (Central time by default, unless configured otherwise). It does not return the subscriber’s local time — use SystemDateToLocalDate() for that.

See Also