Skip to main content
Solved

Extract Year from a Date Field

  • July 8, 2019
  • 5 replies
  • 285 views

Forum|alt.badge.img+12

Hello,

I have a base that has the date and time in one field, I have created another field and I would like to have that field enter the YYYY from the date time field using a formula.

Would anyone know what the formula would be?

Thanks in Advance!

Best answer by Kamille_Parks11

You can use either of these:

YEAR({Date Field})
or
DATETIME_FORMAT({Date Field}, 'YYYY')

5 replies

Kamille_Parks11
Forum|alt.badge.img+27

You can use either of these:

YEAR({Date Field})
or
DATETIME_FORMAT({Date Field}, 'YYYY')


Forum|alt.badge.img+12
  • Author
  • Inspiring
  • July 8, 2019

Thanks Kamille - You’re Awesome!


RonniEloff_VKDe
Forum|alt.badge.img+19

You can use either of these:

YEAR({Date Field})
or
DATETIME_FORMAT({Date Field}, 'YYYY')


Thank you for this, how would I go about getting the Month (name not number)  = as similar formula

We organize our reports rollup by month.  I have a manual method right now but I would love to have an automated formula that created JAN/FEB/MAR etc so when I create a report - it prints out the Month Name not the Month Number


Sean_Lake1
Forum|alt.badge.img+20
  • Inspiring
  • June 25, 2025

How does one extract the year from a Last modified field?


TheTimeSavingCo
Forum|alt.badge.img+31

Try using ‘YY’ instead, e.g.

DATETIME_FORMAT(LAST_MODIFIED_TIME(), 'YY')