1
0
silverbullet/plugs/core/dates.ts
2022-03-04 11:21:11 +01:00

7 lines
191 B
TypeScript

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