@estarlincito/utils
Version:
A collection of utility functions designed to simplify and speed up development tasks in JavaScript and TypeScript projects.
12 lines (11 loc) • 451 B
TypeScript
/**
* Formats the given ISO date string into a human-readable date.
*
* @param {string} publishedAt - The ISO date string to format (e.g., '2025-02-14T10:00:00Z').
* @returns {string} The formatted date in "MMM dd, yyyy" format (e.g., "Feb 14, 2025").
*
* @example
* const formattedDate = dateFormat('2025-02-14T10:00:00Z');
* console.log(formattedDate); // "Feb 14, 2025"
*/
export declare const dateFormat: (publishedAt: string) => string;