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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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