title: Find dates that are not on the first or last day of the month
body: <p>I have a table named <code>Locations</code> that has column named <code>effective_date</code> with many dates from many years, and I want to retrieve only those that are <strong><em>not</em></strong> on the first day of the month or the last day of that month.</p>