***

title: DateTimeSkill
slug: /reference/typescript/agents/skills/datetime
description: Get the current date and time with optional timezone support.
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[add-skill]: /docs/server-sdks/reference/typescript/agents/agent-base/add-skill

[base-parameters]: /docs/server-sdks/reference/typescript/agents/skills#base-parameters

Get the current date and time with optional timezone support.

**Class:** `DateTimeSkill`

**Tools:** `get_datetime`

**Env vars:** None

No custom parameters. This skill inherits only the [base parameters][base-parameters].

```typescript {5}
import { AgentBase, DateTimeSkill } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
agent.setPromptText('You are a helpful assistant.');
await agent.addSkill(new DateTimeSkill());

agent.run();
```