Connecting Tech Pros Worldwide Help | Site Map

Extracting month name

  #1  
Old November 12th, 2005, 04:00 PM
wolftor
Guest
 
Posts: n/a
Month(date) shows the month number. Is there a way to get the month name
ie. October?

--
Regards,
Peter



  #2  
Old November 12th, 2005, 04:00 PM
Arno R
Guest
 
Posts: n/a

re: Extracting month name


Peter,
Format(Month(Date),"mmmm")

--
Hope this helps
Arno R


"wolftor" <wolftor@rogers.com> schreef in bericht
news:cubpb.160822$3f.123874@twister01.bloor.is.net .cable.rogers.com...[color=blue]
> Month(date) shows the month number. Is there a way to get the month name
> ie. October?
>
> --
> Regards,
> Peter
>
>
>[/color]


  #3  
Old November 12th, 2005, 04:01 PM
Tom Wickerath
Guest
 
Posts: n/a

re: Extracting month name


You can also use the MonthName function (Access 2000 and later).

MonthName(month[, abbreviate])

month: required.
The numberic designation of the month (January is 1, February is 2, etc.).

abbreviate: Optional.
Boolean value that indicates if the month name is to be abbreviated. If omitted, the
default is False, which means that the month name is not abbreviated.

To get the month name from the current date, you can use:

MonthName(month(date))

Tom

**************************************************
"Arno R" <arracomn_o_s_p_a_m@tiscali.nl> wrote in message
news:3fa547bb$0$79342$5fc3050@dreader2.news.tiscal i.nl...

Peter,
Format(Month(Date),"mmmm")

--
Hope this helps
Arno R

**************************************************
"wolftor" <wolftor@rogers.com> schreef in bericht
news:cubpb.160822$3f.123874@twister01.bloor.is.net .cable.rogers.com...

Month(date) shows the month number. Is there a way to get the month name ie. October?


Regards,
Peter


  #4  
Old November 12th, 2005, 04:01 PM
Rick Brandt
Guest
 
Posts: n/a

re: Extracting month name


"Arno R" <arracomn_o_s_p_a_m@tiscali.nl> wrote in message
news:3fa547bb$0$79342$5fc3050@dreader2.news.tiscal i.nl...[color=blue]
> Peter,
> Format(Month(Date),"mmmm")[/color]

Incorrect. You want just...

Format(Date, "mmmm")


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #5  
Old November 12th, 2005, 04:01 PM
Arno R
Guest
 
Posts: n/a

re: Extracting month name


Rick, You are right.

I just was too quick, sorry Peter
However, in januari it works ... <g>

Arno R



"Rick Brandt" <rickbrandt2@hotmail.com> schreef in bericht
news:bo4a4a$17ueu3$1@ID-98015.news.uni-berlin.de...[color=blue]
> "Arno R" <arracomn_o_s_p_a_m@tiscali.nl> wrote in message
> news:3fa547bb$0$79342$5fc3050@dreader2.news.tiscal i.nl...[color=green]
> > Peter,
> > Format(Month(Date),"mmmm")[/color]
>
> Incorrect. You want just...
>
> Format(Date, "mmmm")
>
>
> --
> I don't check the Email account attached
> to this message. Send instead to...
> RBrandt at Hunter dot com
>
>[/color]



Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Data from embeded SQL select statement mycall answers 1 January 25th, 2007 09:23 AM
DatePart not returning name of month correctly troddy answers 2 March 17th, 2006 12:55 PM
LDOM - Last Day of Month hunt4grouse@yahoo.com answers 5 November 14th, 2005 07:37 PM
Extracting records Dj Frenzy answers 1 July 19th, 2005 05:50 AM