Skip to main content
Question

Extract Records -Year- CURDATE ?

  • December 24, 2020
  • 1 reply
  • 15 views

curtisd54
Contributor
Forum|alt.badge.img+4

Hello All, Happy Holidays!

I am trying to Extract Records only for the Year (SUBMISSION_YR) (format, '2020') the Tool is Run -

I have WHERE SUBMISSION_YR = YEAR(CURDATE()) but it doesnt appear to be working correctly. This is in the Feature Type>Parameters>Table Settings> Where clause

 

any ideas?

thanks!

 

1 reply

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • January 4, 2021

Hi @curtisd54​ ,

 

Can you try using the following Date Function instead of YEAR(CURDATE()):

@DateTimeFormat(@DateTimeNow(),%Y)

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings