Sort Date by MM./DD but ignore year

  • Thread starter Thread starter TDP
  • Start date Start date
T

TDP

I have a table that includes birthdays. I want to sort
based on birthday, regardless of the year of birth. How
can this be done? Everthing I try includes year in the
sort.
 
Have you tried?

ORDER BY Month([BirthDate]), Day([BirthDate])



hth,
 
You can create a new field in your query - a concatenation
using the datepart function. You can concatenate your
birthday's month and day in this field. Then you can sort
on it.
 
Why bother concatenating? A simple Format$([Birthdate], "mmdd") will
suffice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top