Convert dates to seo compatible dates

I define date and lastmod values as parameters in article pages. These values are as follows:

title: Example Title
slug: example-url
tags: example-tag
date: 03-01-2023 20:00
lastmod: 04-01-2023 20:11

I need to use date and lastmod values in head.html as follows.


date is just an example.

Is there any way I can take the parameters from the article page and convert them to this? I read the documentation but I don’t know exactly how it works.

1 Like

You need to use a different date format in your front matter.


So automatic conversion is not possible.

1 Like

With the four built-in date fields, that is correct.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.