Jump to content

DATE column is within current month?


chiprivers

Recommended Posts

Please could somebody help me with this, I assume, pretty simple SQL where clause...

 

I have a DATE column in my table (field is called reviewdate) and I would like to return all records where the value in this column is within the current month.  Could somebody help with the WHERE clause?

 

Something like...

 

WHERE functionformonthandyearof(reviewdate) = functionforcurrentmonthandyear()

 

Many thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/248470-date-column-is-within-current-month/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.