Date for a week day of a month - Mailing list pgsql-general

Hello,

Can I know how to get the date of each month's last Thursday please?

For example, something like

Query:  select getDateBaseOnWeekday('2007-04-01', 'Last Thursday');
Result: 2007-04-26

Thank you!

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: What O/S or hardware feature would be useful for databases?
Next
From: Charles Pare
Date:
Subject: Stored Procedure: Copy table from; path = text variable