sb-mig
Version:
CLI to rule the world. (and handle stuff related to Storyblok CMS)
15 lines (14 loc) • 381 B
TypeScript
/**
* Date utility functions
*/
/**
* Generate a datestamp string from a Date object
* Format: YYYY-M-D_H-M (no zero-padding)
*
* @param datestamp - The Date object to format
* @returns Formatted date string
*
* @example
* generateDatestamp(new Date('2024-03-15T10:30:00')) // => '2024-3-15_10-30'
*/
export declare const generateDatestamp: (datestamp: Date) => string;