• Standardized date key format for statistics (yyyy-MM-dd). All date keys in statistics use the local date string format to ensure consistency.

    Parameters

    • timestamp: number

      Unix timestamp in milliseconds.

    Returns string

    Date key in yyyy-MM-dd format.

    export function getDateKey(timestamp: number): string {
    // Delegates to getLocalDateString which guarantees yyyy-MM-dd format
    return getLocalDateString(timestamp);
    }