Sorting of values in an attribute of a variation product (dates)

Well i still try to solve it myself, but at least i think now why i got the sorting issue. It seems like wordpress/woocommerce stops the sorting process after the first 2 numbers of the List. From what i can see it does do a sorting, but its based on only on the first 2 numbers. It looks like:

01.02.2023
01.08.2023
02.05.2023
02.10.2023
02.11.2023
03.04.2023
03.07.2023

Not sure it has something to do with the punctuation we use in the EU to write down a date. So i guess i would need to find a way that the sorting counts all numbers into that process? At least i guess that would solve it. But if anybody got an good idear, i would still be very thankfull.

Okay little update, i changed the Format to:

DD/MM/YYYY

Now that does Woocommerce recognize to sort it excatly like i want… but honestly, i don´t want the / format for my dates, i would really prefer the . for my date formats.

  • This reply was modified 2 hours, 58 minutes ago by farngard.

Solved, can be closed.

Solution: The date format in wordpress settings was set to j. F Y
I just set it to costumized format d.m.y and the sorting worked.

Can be closed.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer