Skip to main content
Glama
VikasPrajapati1998

DateTime-LocalMCPServer

formatted_datetime

Retrieve the current local date and time formatted according to your specified strftime pattern. Customize display format or use default YYYY-MM-DD HH:MM:SS.

Instructions

Return the current date and time using a custom format.

Parameters

format : str, optional strftime-compatible format string. Defaults to "%Y-%m-%d %H:%M:%S".

Returns

Dict[str, Any] A dictionary containing: - status : str Indicates successful execution or error. - formatted : str Current datetime formatted according to the provided format string.

If the format string is invalid, an error response is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo%Y-%m-%d %H:%M:%S

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VikasPrajapati1998/DateTime-LocalMCPServer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server