• Resolved montagebedrijfrob

    (@montagebedrijfrob)


    Hello!

    On our wedding website I would like a counter that shows the years, months and days that we have been married.
    The days have already worked, but I have not yet discovered the code that also shows the years and months.

    Do you have a code for this?

    Many thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Konstantin Pankratov

    (@pankratovkm)

    Hey! Something like that, just change the start date to your own!

    [DatetimeDifference startDate="31.11.2020" endDate="now" format="y years, m months and d days"]

    Instead of “y” the years will be displayed, instead of “m” the months, instead of “d” the days, any other text inside the format parameter you could change to suit your needs.

    Or you could use 3 separate shortcodes:

    [DatetimeDifference startDate="31.11.2020" endDate="now" format="y"]
    [DatetimeDifference startDate="31.11.2020" endDate="now" format="m"]
    [DatetimeDifference startDate="31.11.2020" endDate="now" format="d"]
Viewing 1 replies (of 1 total)
  • The topic ‘Counter years, months and days’ is closed to new replies.