Podpora mock dat pro vývoj o víkendech
This commit is contained in:
1 parent
b438d2112a
commit
c814624dbc
10 files changed
+58
-17
No files matched your search
+2
-2
@@ -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