mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-06 01:13:56 +09:00
nanka iroiro
This commit is contained in:
8
src/utils/get-date.ts
Normal file
8
src/utils/get-date.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export default function (): string {
|
||||
const now = new Date();
|
||||
const y = now.getFullYear();
|
||||
const m = now.getMonth();
|
||||
const d = now.getDate();
|
||||
const today = `${y}/${m + 1}/${d}`;
|
||||
return today;
|
||||
}
|
Reference in New Issue
Block a user