1
0
silverbullet/plugs/core/dates.ts
2022-04-01 17:07:08 +02:00

7 lines
201 B
TypeScript

import { insertAtCursor } from "plugos-silverbullet-syscall/editor";
export async function insertToday() {
let niceDate = new Date().toISOString().split("T")[0];
await insertAtCursor(niceDate);
}