mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00

* Allow user to set file name * Add EditableText component Added editable text component and use component for project name edit. * rebased branch * Updated EditableText component * Set default project name * Move project name field away from the top section.
12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
export const getDateTime = (): string => {
|
|
const date = new Date();
|
|
const year = date.getFullYear();
|
|
const month = date.getMonth() + 1;
|
|
const day = date.getDate();
|
|
const hr = date.getHours();
|
|
const min = date.getMinutes();
|
|
const secs = date.getSeconds();
|
|
|
|
return `${year}${month}${day}${hr}${min}${secs}`;
|
|
};
|