--- title: "timestamp (Timestamp)" slug: "calc-function-timestamp" updated: 2026-05-12T13:28:29Z published: 2026-05-12T13:28:29Z canonical: "docs.lobstersoftware.com/calc-function-timestamp" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # timestamp (Timestamp) > [!NOTE] > The function $timestamp() returns the time stamp of the given date compatible value in milliseconds, or else signals an error in the calculation. > > If no parameter is given, the time stamp of the moment of execution will be returned. > > > [!TIP] > > Tooltip > > > > Syntax: *$timestamp([date])* > > > > | Parameter | Description | > > | --- | --- | > > | `date(optional)` | A date value conform value from which the time stamp gets extracted. | > > > > Returns the timestamp of the given date value in milliseconds (type: Long). If no date value is specified, the timestamp of the time of execution of will be returned. ## Syntax *$timestamp([date])* ## Parameter | Name | Description | | --- | --- | | date (optional) | A date value conform value from which the time stamp gets extracted. Supported types are: - Date (native Javascript Date) - Timestamp (Timestamp object) - Time (Time object) - DateTime (Date with time and time zone) - Number, also as text (Timestamp in milliseconds) | ## Return value The timestamp of the given date value in milliseconds (type: Long). If no date value is specified, the timestamp of the time of execution will be returned. ## Examples Executed on 2019/12/04 at 08:48 a.m. | Syntax | Result | Description | | --- | --- | --- | | $timestamp() | 1575445694956 | Timestamp at the time of execution. | | $timestamp($dateCalc(10h 0m 0s 0S)) | 1575450000000 | Timestamp of the execution date at 10:00 o'clock. |