> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xano.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Timestamp

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> add\_ms\_to\_timestamp

`value|add_ms_to_timestamp:milliseconds`

<Accordion title="Examples">
  ```javascript theme={null}
  1698710400000|add_ms_to_timestamp:5000     // Adds 5 seconds (5000ms) to timestamp
  1698710400000|add_ms_to_timestamp:-2000    // Subtracts 2 seconds (2000ms) from timestamp
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> add\_secs\_to\_timestamp

`value|add_secs_to_timestamp:seconds`

<Accordion title="Examples">
  ```javascript theme={null}
  1698710400000|add_secs_to_timestamp:60     // Adds 60 seconds to timestamp
  1698710400000|add_secs_to_timestamp:-30    // Subtracts 30 seconds from timestamp
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> format\_timestamp

`value|format_timestamp:"format":"timezone"`

Formats a timestamp (in milliseconds) to a human-readable string using the specified format and timezone.

<Accordion title="Examples">
  ```javascript theme={null}
  1698710400000|format_timestamp:"Y-m-d":"UTC"     // Returns "2023-10-31"
  1698710400000|format_timestamp:"H:i:s":"America/New_York"    // Returns time in ET
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> parse\_timestamp

`value|parse_timestamp:"format":"timezone"`

Parses a date/time string into a timestamp (milliseconds since epoch) using the specified format and timezone.

<Accordion title="Examples">
  ```javascript theme={null}
  "2023-10-31"|parse_timestamp:"Y-m-d":"UTC"    // Returns 1698710400000
  "15:30:00"|parse_timestamp:"H:i:s":"UTC"      // Converts time to epoch ms
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> transform\_timestamp

`value|transform_timestamp:"relative_expression":"timezone"`

Transforms a timestamp by applying a relative date/time expression (e.g., "+7 days", "last Monday", "first day of this month") in the specified timezone. Returns the resulting timestamp in milliseconds.

<Accordion title="Examples">
  ```javascript theme={null}
  1698710400000|transform_timestamp:"+7 days":"UTC"         // Adds 7 days to the timestamp
  1698710400000|transform_timestamp:"last Monday":"UTC"     // Moves to the previous Monday
  1698710400000|transform_timestamp:"first day of this month":"UTC" // Moves to first day of month
  ```
</Accordion>
