Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default How can I pick up a two digit Month?

MsgBox Format(Date, "mm")

--
Don Guillett
SalesAid Software

"Richard" wrote in message
...
I'm trying to pcik up two digit month.

Example

Jan == 01

Feb == 02

below are the coding that I was trying to get the two digit month, but it
is
not working.

Thanks

Dim strMonth as String

strMonth = format(month(now()), ##)




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping leading zeros in imported data (one digit month as 05) exito816 Excel Discussion (Misc queries) 2 September 28th 07 10:35 PM
Convert 2 digit month to 4 digit years and months BB Excel Worksheet Functions 2 September 17th 06 09:33 PM
pick up date, month and year from a date vikkam Excel Discussion (Misc queries) 4 July 27th 06 04:27 AM
how to convert single digit to month name cygnus Excel Worksheet Functions 4 April 27th 06 05:16 PM
Return double digit month quartz[_2_] Excel Programming 2 April 4th 05 04:09 PM


All times are GMT +1. The time now is 09:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"