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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3907 views
  • 3 likes
  • 3 in conversation