Datetime
Date and time utilities with timezone support. Parse, format, add/subtract time, and check business hours.
Tools
| Name | Description |
|---|---|
parse_dateParse a date string and extract date components (year, month, day, hour, minute, second, timestamp). | Parse a date string and extract date components (year, month, day, hour, minute, second, timestamp). |
format_dateFormat a date using preset formats (ISO, US, EU, long, short, time, datetime, relative) with timezone support. | Format a date using preset formats (ISO, US, EU, long, short, time, datetime, relative) with timezone support. |
date_mathAdd or subtract time from a date (supports seconds, minutes, hours, days, weeks, months, years). | Add or subtract time from a date (supports seconds, minutes, hours, days, weeks, months, years). |
is_business_hoursCheck if a date falls within business hours. Configurable work days and hours. | Check if a date falls within business hours. Configurable work days and hours. |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('datetime', 'parse_date', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'datetime',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect Datetime to my app?
Datetime does not require an external account connection. Install the SDK, add the integration to a workspace, then execute tools programmatically.
What tools does Datetime support?
Datetime supports 4 tools including Parse Date, Format Date, Date Math, Is Business Hours.
Can I use Datetime with AI agents?
Yes. Add Datetime to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect Datetime to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add Datetime as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped Datetime tools exposed by that workspace.
Does Datetime work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved Datetime work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with Datetime?
Datetime exposes 4 tools, including Parse Date, Format Date, Date Math, Is Business Hours. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can Datetime be used in stateful agent workflows?
Yes. Agents can combine Datetime tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does Datetime use?
Datetime does not require external authentication.
How much does the Datetime integration cost?
The Datetime integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
Connect Datetime in minutes
Get 20,000 free action executions every month. No credit card required.