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

How to extract month name from a date?

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
0
0
GB
Hi,

Probably really simple but cant find out how anywhere but...how do I extract the month name from a date in a sql query in access.

So I want to extract "May" from this date "06/05/1967" which is in format DD/MM/YYYY.

TIA
 
Thanks but I have tried that but I get "Undefined Function 'Format' in expression"

SELECT Format(scheduled_date,'mmmm')
FROM View_Scheduled_Actions;
 
you need to use an alias

SELECT Format([scheduled_date],'mmmm')as datemonth
FROM View_Scheduled_Actions;

or you may have to refresh your references if Access is not recognizing format as a function
 
Hi!

While in the code window, select Tools/References and scroll down the list box to make sure none are marked as missing.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top