Wrong date number for folder blog post

I added to blog blueprint:

pages:
  num: date

The blog post contains the following:

Date: 2023-07-25

When published the folder of the blog post is:

2023025_blog-post

Missing the ‘7’. What am I doing wrong here?

I’m not sure where you are using the num property, but it must be defined

  1. in the blog post blueprint
  2. the property must be set on the first level (i.e. not indented under pages (not sure what pages is in this context (Page blueprint | Kirby CMS)

Check. I now moved it to the first level. I tried:

num: '{{ page.created.toDate("Ymd") }}'

and

num: '{{ page.Date }}'

The problem stays the same :frowning:

Since your date field seems to be called date, it should be

num: '{{ page.date.toDate("Ymd") }}'

No luck unfortunately. I changed the Date field to 2023-07-24 and it now the folder name is 2023024

I tried 2023-12-24 and it is still 2023024. So it seems the whole month is not read?

Have you set the date handler to something other than the default handler?

Yes :see_no_evil: That solved it! Thank you so much! Don’t know why it was set to intl.