Show next year in template

19 June, 2020 07:08:00
Arya
Topics: 2
Messages: 2
Hi,

I want to show year format like this 2020/2021. 2020 is the current year and 2021 is the next year. What do I need to do? I tried to use shortcode like this [e2pdf-format-date format="Y/Y+1"]now[/e2pdf-format-date], but it showing 2020/2020+1. Please, I need your help.

Thanks
20 June, 2020 01:57:40
E2Pdf
Support
Topics: 7
Messages: 3188
Hi,

To show current year/+1 year from time of PDF generated you must use such construction:

[e2pdf-format-date format="Y"]now[/e2pdf-format-date]/[e2pdf-format-date format="Y"]+1 year[/e2pdf-format-date]

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