Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
estruyf opened this issue Jun 22, 2023 · 1 comment
Closed

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

estruyf opened this issue Jun 22, 2023 · 1 comment

Comments

@estruyf
Copy link
Owner

estruyf commented Jun 22, 2023

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.

@estruyf estruyf added the enhancement New feature or request label Jun 22, 2023
@estruyf
Copy link
Owner Author

estruyf commented Jun 22, 2023

A new dateFormat property got added to the datetime field.

Example:

{
  "title": "Date only",
  "name": "dateOnly",
  "type": "datetime",
  "default": "{{now}}",
  "dateFormat": "yyyy-MM-dd"
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant