currentTimestamp — GTM Variable Template for Date
When to Use This
Date Formatting
Format and transform date values into human-readable or machine-readable strings.
Date & Time
Calculate durations, differences, and time-based operations on date values.
Examples
Returns current timestamp
OUTPUT
""
GTM Configuration
This is what you'll see when you open this variable in Google Tag Manager.
Read-only Preview
currentTimestamp
This function takes no parameters.
Related Variables
Same category: Date
Under the Hood
📜 View Implementation Code
/**
* Returns the current timestamp in milliseconds.
*
*
* @returns {number} The current timestamp in milliseconds since epoch.
*
* @framework ggLowCodeGTMKit
*/
const getTimestampMillis = require('getTimestampMillis');
// ===============================================================================
// currentTimestamp - Direct mode
// ===============================================================================
return getTimestampMillis();🧪 View Test Scenarios (1 tests)
✅ '[example] Returns current timestamp'