Dates

SteveHirsch

New member
Local time
Today, 04:58
Joined
Apr 21, 2005
Messages
5
Can anyone help with a query that takes the dates (with other data) and convert to monthly?
 
Can you please be a little more specific with your question?

DatePart() function may be what you are looking for, but I am not sure.
 
We can't help if you don't tell us what you need help with. Post the query and tell us what isn't working/what you are looking for.

Extracting a month from a date field is not difficult, but I am not sure if that is what you want.

Code:
SELECT Month([datefield]) AS [DateMonth]
FROM Table1
 
I would suggest that if you dates go over a period of years you cannot use datepart or month

You should then do
Year([Yourdate]) & Month([Yourdate])
or
Format([Yourdate],"YYYYMM")

Seasons greetings from Amsterdam

The Mailman
 

Users who are viewing this thread

Back
Top Bottom