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.

2022-11-17T17:16:13+00:00

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.

2 Likes

So automatic conversion is not possible.

1 Like

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

2 Likes

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