VBA/Excel/Access/Word/Excel/Month — различия между версиями
Admin (обсуждение | вклад) м (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