mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
8 lines
239 B
TypeScript
8 lines
239 B
TypeScript
/** Current UTC calendar month as `YYYY-MM`. */
|
|
export const currentMonthlyPeriod = (): string => {
|
|
const now = new Date();
|
|
const month = String(now.getUTCMonth() + 1).padStart(2, '0');
|
|
|
|
return `${now.getUTCFullYear()}-${month}`;
|
|
};
|