Skip to content

Tankōbon / lib/reading-stats / periodKey

Function: periodKey() ​

periodKey(date, period): string

Defined in: lib/reading-stats.ts:72

The key of the local week, month or year a date falls in: YYYY-MM-DD of the week's Monday, YYYY-MM or YYYY.

Parameters ​

date ​

Date

period ​

StatsPeriod

Returns ​

string