Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I show last month's name/date only

Status
Not open for further replies.

JSeidel

Technical User
Jan 10, 2003
77
US
I am looking to fill in the following statement:

Last Month's Statistics
Month Name:

How do I write a formula to say only show the name for last month?

thanks!
 
The following will give you "December".

monthname(month(dateadd("m",-1,currentdate))) Mike

Before: After
[morning] [bugeyed]
 
the function - monthname - is available example
monthname({my_date})

or

totext({my_date}, "MMMM")

will return the month name as well
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top