1
0
silverbullet/plugbox/core/dates.ts

7 lines
194 B
TypeScript
Raw Normal View History

2022-02-24 16:24:49 +00:00
import { syscall } from "./lib/syscall.ts";
export async function insertToday() {
let niceDate = new Date().toISOString().split("T")[0];
await syscall("editor.insertAtCursor", niceDate);
}