BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pcfriendly
Calcite | Level 5

Hi,

I want to apply a Filter for a date field where the Results should be all data with an End_Date Greater than today.

I've tried adding DATE & DATE() but it's not being accepted.

What is the correct syntax for the query builder?

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
TomKari
Onyx | Level 15

If you're looking for the function that will return today's date, try TODAY().

Tom

View solution in original post

5 REPLIES 5
JerryLeBreton
Pyrite | Level 9

If d is your date variable...

filter.JPG

pcfriendly
Calcite | Level 5

Thanks Jerry, I didn't think of a Function.

TomKari
Onyx | Level 15

If you're looking for the function that will return today's date, try TODAY().

Tom

pcfriendly
Calcite | Level 5

Thanks Tom !

JerryLeBreton
Pyrite | Level 9

DATE() = TODAY()

But TODAY() is indeed more self_documenting!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 3376 views
  • 3 likes
  • 3 in conversation