Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching records by date

Status
Not open for further replies.

song2siren

Programmer
Jun 4, 2003
103
GB
Hello

I've got a date field in a SQL database (PubDate) and I just need to know how to retrieve records using a stored procedure depending on whether the date is either this month or last month.

The search parameter for this month or last month is passed to the stored procedure from a dropdown list on an aspx page.

I think this should be fairly simple but any suggestions would be much appreciated.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top