- Katılım
- 25 May 2018
- Mesajlar
- 1,606
- En iyi yanıt
- 14
- Puanları
- 113
- Konum
- İstanbul
- Web sitesi
- excelarsivi.com
- Ad Soyad
- Murat OSMA
- Office Vers.
- Office 365 TR+EN
MONTH ( Date )
Belirli bir tarihten ay sayısını döndürür. (Integer)
Açıklamalar
* Date herhangi bir tarih, sayısal veya metin ifadesi olabilir.
* Date Null ise, Null değer döndürülür.
* Döndürülen değer 1 ile 12 arasındadır.
Örnek Kullanım
Belirli bir tarihten ay sayısını döndürür. (Integer)
Date | Ay sayısını almak istediğiniz tarih. (Date) |
Açıklamalar
* Date herhangi bir tarih, sayısal veya metin ifadesi olabilir.
* Date Null ise, Null değer döndürülür.
* Döndürülen değer 1 ile 12 arasındadır.
Örnek Kullanım
PHP:
Sub ExcelTurkey()
Dim Tarih As Date
Tarih = 32616
MsgBox Month(Tarih) ' = 4
MsgBox Month(#12/6/2008#) ' = 12
MsgBox Month("1 Ocak 2007") ' = 1
MsgBox Month("Şubat 12, 2005") ' = 2
MsgBox Month("01/02/2007") ' = 2
MsgBox Month("1 Şub 2007") '= 2
MsgBox Month(Now()) '= 5
MsgBox Month(1) ' = 12
MsgBox Month(15) ' = 1
MsgBox Month(30) ' = 1
MsgBox Month(32) ' = 1
MsgBox Month(33) ' = 2
MsgBox Month(60) ' = 2
MsgBox Month(61) ' = 3
MsgBox Month(256) ' = 9
MsgBox Month(365) '= 12
MsgBox Month(2000) ' = 6
End Sub