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

Want to convert a DATE to Month# and Year 1

Status
Not open for further replies.

molly

Technical User
Jul 17, 2000
219
US
I am trying to take a date like 5/31/2009 and convert it in a query to 200905. The following does not work for me.

Purchases MonthYear: Format([PO Date],"mmmm" & " "&"yyyy")

gets me an answer of 2009 May

I desire 200905.

Thanks for your help.
 
Purchases MonthYear: Format([PO Date],"yyyymm")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Perfect.

Purchases YearMonth: Format([PO Date],"yyyymm")

Molly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top