A SilverBullet plug that provides natural language date and time completion.
- SilverBullet 2.0.0 or higher
- Uses the powerful chrono library for date parsing
- Type
!!followed by a natural language date - A completion popup appears with your parsed dates or quick options (today/tomorrow/yesterday)
- Examples:
!!tomorrow→ Shows tomorrow's date with[tomorrow]label!!next friday 2pm→ Shows next Friday at 2 PM with time!!next thu→ Parses to next Thursday, then typing2pmupdates it!!in 3 weeks→ Shows date 3 weeks from now!!last monday→ Shows last Monday's date!!dec 25→ Shows December 25th of current year!!(empty) → Shows today/tomorrow/yesterday options
- Press
Enterto insert the formatted date - Press
Escapeto cancel
- Configurable Output: Customize date/time format to your preference using CONFIG
Add to your CONFIG page and run Plugs: Update:
config.set {
plugs = {
-- Add your plugs here
"github:deepkn/silverbullet-nldates/nldates.plug.js",
...
},
...
nldates = {
-- Output format for dates (using Unicode date format patterns)
-- Default: "yyyy-MM-dd"
dateFormat: "yyyy-MM-dd",
-- Include time in output if parsed (default: true)
includeTime: false,
-- Timezone (default: system timezone)
timezone: "America/New_York",
},
...
}yyyy-MM-dd→ 2025-10-05MMM d, yyyy→ Oct 5, 2025EEEE, MMMM d, yyyy→ Sunday, October 5, 2025yyyy-MM-dd HH:mm→ 2025-10-05 14:30h:mm a→ 2:30 PM
deno task build