# Split dataset based on timeframe

**URL:** <https://nextstrain.discourse.group/t/split-dataset-based-on-timeframe/1154>\
**Category:** Help and Getting Started\
**Created:** [June 24, 2022, 11:22am UTC](https://nextstrain.discourse.group/t/split-dataset-based-on-timeframe/1154 "2022-06-24T11:22:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![omarkr](https://avatars.discourse-cdn.com/v4/letter/o/c2a13f/32.png) [@omarkr](https://nextstrain.discourse.group/u/omarkr)\
**Post date:** [June 24, 2022, 11:22am UTC](https://nextstrain.discourse.group/t/split-dataset-based-on-timeframe/1154/1 "2022-06-24T11:22:34Z")

</div>

Hi,

Let’s say I have GISAID data spanning 3 months. I want biweekly snapshots from earliest to latest date.  
How do I go about telling the build to do this, without having to specify what those dates are.  
Does it have a … min.date()/max.date(); then min.date() + 14 days … etc etc equivalent?

Perhaps I would have to instead create a build for each slice, so to speak.  
not sure how i should be thinking about this.

---

<div class="post-metadata">

**Author:** ![corneliusroemer](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/corneliusroemer/32/175_2.png) [@corneliusroemer](https://nextstrain.discourse.group/u/corneliusroemer)\
**Post date:** [June 30, 2022, 12:24pm UTC](https://nextstrain.discourse.group/t/split-dataset-based-on-timeframe/1154/2 "2022-06-30T12:24:20Z")

</div>

What do you mean by snapshots? What do you want the output to be? Sequences, an auspice.json build?
