VS Code Extensions
Front Matter Automatic Date & Time

Front Matter Automatic Date & Time

by strappazzon

Automatically add creation time and update last modified time in the Front Matter when saving a Markdown file.

Downloads

5

Rating

— (0)

Version

0.1.1

Last updated

Jul 24, 2026

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

Extension demo

Contributing

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

Related extensions