---
title: "Start / End of Period"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/datetime/startendofperiod
markdown: https://docs.nodetool.ai/nodes/lib/datetime/startendofperiod.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/datetime/startendofperiod.md
---

# Start / End of Period

**Type:** `lib.datetime.StartEnd`

**Namespace:** `lib.datetime`

## Description

Return the start and end of the given period (day, week, month, year).
    date, start, end, period, boundary

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| date | `any` |  | `` |
| unit | `enum` |  | `day` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| start_iso | `str` |  |
| end_iso | `str` |  |
| start | `datetime` |  |
| end | `datetime` |  |

## Related Nodes

Browse other nodes in the [lib.datetime](./) namespace.
