Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
date function
help pls.. how can I get the month of a whole date. example March 2, 2007.
should return only the Month which is March.Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
date function
Various ways:
Private Sub CommandButton1_Click() Dim TheMonth As Long TheMonth = Month(Now()) Debug.Print TheMonth Debug.Print MonthName(TheMonth, False) Debug.Print MonthName(TheMonth, True) Debug.Print Format(Now(), "dd/mmmm/yyyy") End Sub NickHK "Chinx21" . wrote in message ... help pls.. how can I get the month of a whole date. example March 2, 2007. should return only the Month which is March.Thanks! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
date function
If Cell A1 has the date. Write the following formual in any other
cell... =TEXT((A1),"MMMM") Now this cell will have the month. Thx Karthik |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
date function
Hi,
and also msgbox datepart("m",now) msgbox monthname(datepart("m",now)) msgbox monthname(datepart("m","March 2, 2007")) Look in help for the DatePart Function Regards JY "Chinx21" . wrote in message ... help pls.. how can I get the month of a whole date. example March 2, 2007. should return only the Month which is March.Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Function to lookup date on tab in excel and populate date on calen | Excel Worksheet Functions | |||
Difference betwen Excel Date () Function and System Date | Excel Worksheet Functions | |||
MAX figure within a date range as a function of today()'s date | Excel Worksheet Functions | |||
Date Function formula that will return the date of a specific week | Excel Worksheet Functions | |||
Calculating days between current date and a date in future NETWORKDAYS() function | Excel Worksheet Functions |