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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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