converting "11" to "November", etc. 
Author Message
 converting "11" to "November", etc.

How can I convert the numerical representation of a
month/date to it's english equivilent?

Thanks!



Mon, 02 May 2005 23:41:40 GMT  
 converting "11" to "November", etc.
Hello James,

Use the function MonthName. I have copied and pasted the Help entry for you:

MonthName Function

Description:
Returns a string indicating the specified month.

Syntax:
MonthName(month[, abbreviate])

The MonthName function syntax has these parts:
PartDescription
monthRequired. The numeric designation of the month. For example, January is
1, February is 2, and so on.
abbreviateOptional. 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.

Cheers,

Jerome



Quote:
> How can I convert the numerical representation of a
> month/date to it's english equivilent?

> Thanks!

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.417 / Virus Database: 233 - Release Date: 08-11-02


Tue, 03 May 2005 00:05:37 GMT  
 converting "11" to "November", etc.
try to use:
format(#11/1/1#,"mmmm")

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com


Quote:
> How can I convert the numerical representation of a
> month/date to it's english equivilent?

> Thanks!



Tue, 03 May 2005 01:25:46 GMT  
 converting "11" to "November", etc.
And generalizing this idea, if you have the month number in, say,
[MonthNo], you could use the following expression:

    Format(DateSerial(1, [MonthNo], 1), "mmmm")

If you have a complete date, you can use just

    Format([DateField], "mmmm")

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


Quote:
> try to use:
> format(#11/1/1#,"mmmm")

> --
> Alex Dybenko (MVP)
> http://Alex.Dybenko.com



> > How can I convert the numerical representation of a
> > month/date to it's english equivilent?

> > Thanks!



Tue, 03 May 2005 06:30:38 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

2. GetObject("","InternetExplorer.Application") fails in Excel VBA

3. SysCmd 603, "path","path"

4. Disabling "BACK"/"FORWARD" buttons

5. Loop print "VARIABLE", "VARIABLE"

6. DLL or something like "#"#ยค#"!"#

7. Disabling "BACK"/"FORWARD" buttons

8. CreateObject("Excel","//server"), MsgBox output

9. Problem With "window.showmodaldialog("")"

10. CreateObject("Excel","//server"), MsgBox output

11. "Cannot load """

12. GetObject("","InternetExplorer.Application") fails in Excel VBA

 

 
Powered by phpBB® Forum Software