Podpora mock dat pro vývoj o víkendech
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export function getDate() {
|
||||
const date = new Date();
|
||||
/** Vrátí datum v ISO formátu. */
|
||||
export function formatDate(date: Date) {
|
||||
let currentDay = String(date.getDate()).padStart(2, '0');
|
||||
let currentMonth = String(date.getMonth() + 1).padStart(2, "0");
|
||||
let currentYear = date.getFullYear();
|
||||
|
||||
Reference in New Issue
Block a user