# Time series node

**URL:** <https://forums.losant.com/t/time-series-node/5967>\
**Category:** Help\
**Tags:** workflow, node\
**Created:** [February 4, 2026, 2:40pm UTC](https://forums.losant.com/t/time-series-node/5967 "2026-02-04T14:40:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surya\_Kapisetti](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Surya\_Kapisetti](https://forums.losant.com/u/Surya_Kapisetti)\
**Post date:** [February 4, 2026, 2:40pm UTC](https://forums.losant.com/t/time-series-node/5967/1 "2026-02-04T14:40:17Z")

</div>

I am working with Data Time series node. I am able to query the data for a range of time. But would like query the data points from a specific start date timestamp to end timestamp.

Example : From Dec 1st 2025 to Jan 27st 2026. But there is no configuration for the Time series node to enter start and end times.

Need some assistance on this topic.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [February 4, 2026, 3:10pm UTC](https://forums.losant.com/t/time-series-node/5967/2 "2026-02-04T15:10:20Z")

</div>

You have a couple options …

First, the Data: Time Series Node allows you to set a “Custom” time range, which allows you to enter a **Range Duration** and a **Range End** , both of which accept [string templates](https://docs.losant.com/references/templating/#string-templates).

So assuming you have your start time and your end time on the payload as ISO strings like so …

```json
{
  "startTime": "2025-12-01T00:00:00.000Z",
  "endTime": "2026-01-27T00:00:00.000Z"
}

```

… you can use a combination of the [`{{formatDate}}` helper](https://docs.losant.com/references/templating/#formatdate-val-formatstr-tzutc-localeen) and the [`{{subtract}}` helper](https://docs.losant.com/references/templating/#subtract-val1-val2) to configure the node:

- **Range Duration:** `{{subtract (formatDate endTime 'x') (formatDate startTime 'x')}}`
- **Range End:** `{{formatDate endTime ‘x’}}`

* * *

Alternatively, you can use the [Losant API Node](https://docs.losant.com/workflows/data/losant-api/) and the [Data: Time Series Query](https://docs.losant.com/rest-api/data/#time-series-query) action with a query like the following (which you will need to edit to fit your use case) …

```auto
{
  "start": {{formatDate startTime 'x'}},
  "end": {{formatDate endTime 'x'}},
  "attributes": [...],
  "deviceIds": [...],
  "resolution": "..."
}

```

Note that both `start` and `end` require the value to be a number representing milliseconds since Epoch.

---

<div class="post-metadata">

**Author:** ![Surya\_Kapisetti](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Surya\_Kapisetti](https://forums.losant.com/u/Surya_Kapisetti)\
**Post date:** [February 4, 2026, 3:13pm UTC](https://forums.losant.com/t/time-series-node/5967/3 "2026-02-04T15:13:28Z")

</div>

Thanks Dylan!! appreciate the response
