Formating Dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I take a date 9/02/2005 and make it so I can group them by month, i.e
9/2005.
 
Month([DateField]) will extract a number from 1 to 12 from a date field.
 
If you don't want the months of different years to group together then you
can use

Format(datefield,"mm/yyyy")
 
Or, depending on how you want them to sort, Format(datefield,"yyyy/mm")
 

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