VBA/Excel/Access/Word/Excel/Month — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 12:47, 26 мая 2010

Month(Date)

 
Sub Main5()
   Debug.Print "Today"s date is: " & Date
   Debug.Print "The month is: " & Month(Date)
End Sub



Month(date) returns a Variant/Integer between 1 and 12, inclusive, representing the month for date

 
Sub dateDemo8()
   Debug.Print Month(Date) & "/" & Day(Date)
End Sub



Month("Feb 4, 1900") returns 2

 
Sub monDemo()
    Debug.Print Month("Feb 4, 1900")
End Sub