Skip to main content
Glama
CalendarInput.utils.ts569 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 /** * Returns a month display string (e.g. "January 2020"). * @param date - Any date within the month. * @returns The month display string (e.g. "January 2020") */ export function getMonthString(date: Date): string { return date.toLocaleString('default', { month: 'long' }) + ' ' + date.getFullYear(); } export function getStartMonth(): Date { const result = new Date(); result.setDate(1); result.setHours(0, 0, 0, 0); return result; }

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/medplum/medplum'

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