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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert date to month-year format

Status
Not open for further replies.
Nov 23, 2004
47
US
Is there a formula to convert a date to month-year format so I can group in my charts and reports?
 

Yes, but it sounds like you can do this without a formula. When you create the group on the date field, select "For each month". This will create group values such as 2/2010, 3/2010, 4/2010, etc.

If you need the formula for non-grouping purposes, it would look something like this:

totext(year({Orders.Order Date}),"#",0) & "/" & totext(month({Orders.Order Date}),"#",0)

Keep in mind that if you need to sort on the formula then you need the year first. The grouping function puts the month first, but still sorts correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top