Howto return Previous month name

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

How can I return the previous month name using the following:

Format((date), " mmmm ")

This returns the current month name "March".
I need the previous month name "Feburary"
 
Try:
Format(DateAdd("m", -1, Date()), "mmmm")
or perhaps:
Format(Date() - Day(Date())), "mmmm')
 
Allen said:
Try:
Format(DateAdd("m", -1, Date()), "mmmm")
or perhaps:
Format(Date() - Day(Date())), "mmmm')


The first one worked
Format(DateAdd("m", -1, Date()), "mmmm")
 

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