• Resolved melde

    (@meladiede)


    Hello,

    how can I calculate my age?

    I tried it a few times. My last try looks like this:
    [date_sub day="1" month="1" year="1990" show="yearonly"]
    but I got 2028 as result. I expect 28.

    Thanks.

Viewing 1 replies (of 1 total)
  • Google explain the problem:

    Note:
    For the y and yy formats, years below 100 are handled in a special way when the y or yy symbol is used. If the year falls in the range 0 (inclusive) to 69 (inclusive), 2000 is added. If the year falls in the range 70 (inclusive) to 99 (inclusive) then 1900 is added. This means that “00-01-01” is interpreted as “2000-01-01”.

    All is in the way that a browser read the result of the years.

    • This reply was modified 5 years, 3 months ago by rossennenov.
Viewing 1 replies (of 1 total)
  • The topic ‘Age not working’ is closed to new replies.