Skip to main content
Question

How to display current year from date created field?

  • Mar 22, 2018 6:41 PM UTC
  • 0 replies
  • 175 views

I want to display current year, from date created field. I have a formula date field but it gives me an error on the formula "Year[Date Created]. Also I need to know this 'Year' field which i create won't change when the year changes. Thanks
This topic has been closed for replies.

  • Qrew Corporal
  • Mar 22, 2018 6:47 PM UTC
Year(ToDate([Date Created])) = numeric field

Forum|alt.badge.img+17
  • Quickbase Staff
  • Mar 22, 2018 6:47 PM UTC
Hi Raj,

Most likely you are getting that error message because you don't have parenthesis around the field name to show that you want the year function to effect it. I would suggest trying

Year(ToDate([Date Created])) 
If you do then that formula field will reflect the year that the record was created and will not change. You would also want to make sure it will match the field type that you are using. Are you attempting to put it into a formula date or formula numeric?

  • Qrew Corporal
  • Mar 22, 2018 6:52 PM UTC

Raj

The formula reflects the year value in the [Date Created] field. Since the value in [Date Created] never changes, the formula will never change as it mirrors the year in [Date Created].


  • Author
  • Qrew Corporal
  • Mar 22, 2018 6:56 PM UTC
Thank you for the quick response Evan and Chris.