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

Show Date as yyyy/mm 1

Status
Not open for further replies.

hefly

Technical User
Feb 6, 2008
134
US
How do you show date as Year/Month?

2011/11
2011/2

I can only get "yyyy"
Code:
SELECT DatePart("yyyy",[Dated]) AS YrMo
FROM tbl_Leases;
Thanks

Hefly
 
I was trying all kinds of iterations in the code,, but nothing!

Thank you DHookom!

Hefly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top