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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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