Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Auto Date on Open

KaicuiKaicui36 downloads

Adds today's date to a note when you open it, using your own line template, date format and choice of which notes to include.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Adds today's date to a note when you open it, and only once per day. Useful for running logs, journals and lab notebooks where each visit should start a new dated section.

---
auto-date: true
---
## 2026-07-20 Monday

(today's entry)

## 2026-07-19 Sunday

(yesterday's entry)

How it works

When you open a note that is in scope, the plugin checks whether today's date is already there. If it is, nothing happens; if it is not, the date line is added — below the note's properties, never above them.

By default only notes carrying the auto-date: true property are touched, so opening the rest of your vault changes nothing.

Settings

Setting What it does
Line template The line to add. {{date}} is replaced by today's date. Anything else in the template is kept as written, so ## {{date}}, **{{date}}** and ### {{date}} — log all work.
Date format Moment.js tokens, for example YYYY-MM-DD dddd. Follows the language your interface is set to, so dddd gives Monday in English and 星期一 in Chinese.
Format used to detect an existing date Checked against the start of each line to decide whether today has already been recorded. Keep it shorter than the date format — with YYYY-MM-DD here and YYYY-MM-DD dddd above, notes stamped before you added the weekday are still recognised, so you do not get duplicates.
Position Top or bottom of the note.
Add the date when a note is opened Turn off to use the command only.
Notes to include Notes with a property, notes in chosen folders, or every note.

There is also a command, Add today's date to the current note, which works on any note regardless of scope. Give it a hotkey if you would rather add dates by hand.

Format reference

Token Result
YYYY-MM-DD 2026-07-20
dddd Monday
ddd Mon
MMMM D, YYYY July 20, 2026
YYYY 年 M 月 D 日 2026 年 7 月 20 日

Full list: Moment.js display formats.

Manual installation

Copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/auto-date-on-open/, then enable the plugin under Settings → Community plugins.

Notes

Notes are edited through the editor when they are open in editing view, so undo works normally. Otherwise the file is updated atomically, which avoids clashing with sync or with other plugins writing to the same note.


中文说明

打开笔记时自动写上今天的日期,每天只写一次。适合日志、周记、实验记录这类"每次打开就往下续一段"的笔记。

默认只处理属性里写了 auto-date: true 的笔记,其它笔记打开时不会有任何变化。

设置项里可以自定义:插入的整行模板({{date}} 是占位符)、日期格式、判重用的格式、插在开头还是结尾、以及生效范围(按属性 / 按文件夹 / 全部笔记)。

判重格式建议比显示格式短。比如显示用 YYYY-MM-DD dddd、判重用 YYYY-MM-DD,那么以后改显示格式时,之前已经写好的日期仍然认得出来,不会重复插入。

dddd 输出的星期跟随 Obsidian 的界面语言:界面是中文就是「星期一」,英文就是「Monday」。

License

MIT

HealthExcellent
ReviewPassed
About
Insert today's date into a note when you open it, adding at most one dated heading per day to start a new section. Restrict additions to notes marked with auto-date: true or chosen folders, append the date below note properties, and run a command to add today's date manually to any note.
DatesAutomation
Details
Current version
1.0.0
Last updated
2 weeks ago
Created
2 weeks ago
Updates
1 release
Downloads
36
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
KaicuiKaicuikaicuichen-git
GitHubkaicuichen-git
  1. Community
  2. Plugins
  3. Dates
  4. Auto Date on Open

Related plugins

Rollover Daily Todos

Rollover any unchecked checkboxes from your last daily note into today's note.

Vault Changelog

Maintain a changelog of recently edited notes.

Day and Night

Automatically toggle themes between day theme and night theme on a set time schedule.

BRAT

Easily install a beta version of a plugin for testing.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Advanced URI

Control everything with URI.

Tasks

Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering. Maintained by Clare Macrae and Ilyas Landikov, created by Martin Schenck.

Day Planner

Turn tasks from daily notes, the Tasks plugin, and calendars into time blocks on an editable timeline, with built-in time tracker.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Update modified date

Automatically update a frontmatter modified date field when the file is modified.