[e2pdf-wc-order key="get_date_completed"] without time

WooCommerce
24 August, 2022 08:06:20
twocolours
Topics: 3
Messages: 6
Hello, how I can hide time of purchase from this shortcode: [e2pdf-wc-order key="get_date_completed"]

Currently I have full date (day, month, year and hour). I don't want to print hour.

Thank you!
24 August, 2022 09:10:10
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

You must be able to reformat the date with [e2pdf-format-date] shortcode wrapper as:

[e2pdf-format-date format="d F Y"][e2pdf-wc-order key="get_date_completed"][/e2pdf-format-date]

If it will not work, let us know please which value you get from [e2pdf-wc-order key="get_date_completed"] as it can be different depending on WooCommerce settings.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
24 August, 2022 10:45:09
twocolours
Topics: 3
Messages: 6
Unfortunately it isn't working.

I attach screens.
24 August, 2022 12:03:39
E2Pdf
Support
Topics: 7
Messages: 3335
Use please the following construction:

[e2pdf-format-output explode="," output="{0}"][e2pdf-wc-order key="get_date_completed"][/e2pdf-format-output]

It will split date and will output just 1st part.

P.S. We will review the possibility to add extended options for date format to [e2pdf-wc-order key="get_date_completed"] shortcode in future update.

We remain at your service.
We would really appreciate your feedback at WordPress.org!