ccusage / data-loader / formatDateCompact
Function: formatDateCompact()
ts
function formatDateCompact(dateStr): string;
Formats a date string to compact format with year on first line and month-day on second
Parameters
Parameter | Type | Description |
---|---|---|
dateStr | string | Input date string |
Returns
string
Formatted date string with newline separator (YYYY\nMM-DD)