MCPcopy Index your code
hub / github.com/github/awesome-copilot / formatFullDate

Function formatFullDate

website/src/scripts/utils.ts:734–745  ·  view source on GitHub ↗
(isoDate: string | null | undefined)

Source from the content-addressed store, hash-verified

732 * @returns Formatted date string
733 */
734export function formatFullDate(isoDate: string | null | undefined): string {
735 if (!isoDate) return "Unknown";
736
737 const date = new Date(isoDate);
738 if (isNaN(date.getTime())) return "Unknown";
739
740 return date.toLocaleDateString("en-US", {
741 year: "numeric",
742 month: "long",
743 day: "numeric",
744 });
745}
746
747/**
748 * Generate HTML for displaying last updated time with hover tooltip

Callers 1

getLastUpdatedHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected