Front Matter Auto Date & Time
A Visual Studio Code extension that automatically adds creation time and updates last modified time in the Front Matter when saving a Markdown file.
Limitations and Known Issues
- All comments in the Front Matter are removed on save
Settings
This extension contributes the following settings:
| Setting |
Description |
Type |
Default |
front-matter-auto-datetime.enable |
Enable or disable the extension globally. |
Boolean |
true |
front-matter-auto-datetime.format |
See the Day.js docs for valid formats. |
String |
YYYY-MM-DDTHH:mm:ss[Z] |
front-matter-auto-datetime.includes |
Patterns for files that will get updated. |
String[] |
["**/*.md"] |
front-matter-auto-datetime.prop.date |
Front Matter property name used for the creation date. Set to false to disable. |
String |
date |
front-matter-auto-datetime.prop.lastmod |
Front Matter property name used for the last modified date. Set to false to disable. |
String |
lastmod |
Demo

Contributing
If you are interested in contributing directly to this repository, please see:
| |