Enhancement: Allow to define the date format on the field #464

Closed
opened 2026-10-05 02:48:38 +02:00 by adam · 1 comment
Owner

Right now, you can only define the date format Front Matter uses at the global level with the frontMatter.taxonomy.dateFormat setting.

In the following Discord thread: https://discord.com/channels/992409023607476224/1120978270565978174 - Llamanat3r opted to have the option on field level.

Right now, you can only define the date format Front Matter uses at the global level with the `frontMatter.taxonomy.dateFormat` setting. In the following Discord thread: https://discord.com/channels/992409023607476224/1120978270565978174 - Llamanat3r opted to have the option on field level. <!-- github-sync-id:1769208246 -->
adam closed this issue 2026-10-05 02:48:38 +02:00
Author
Owner

A new dateFormat property got added to the datetime field.

Example:

{
  "title": "Date only",
  "name": "dateOnly",
  "type": "datetime",
  "default": "{{now}}",
  "dateFormat": "yyyy-MM-dd"
}
A new `dateFormat` property got added to the `datetime` field. Example: ```json { "title": "Date only", "name": "dateOnly", "type": "datetime", "default": "{{now}}", "dateFormat": "yyyy-MM-dd" } ``` <!-- github-comment-id:1602583833 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#464