DatePart (interval As String, date As Date [, firstDayOfWeek As Integer [, firstWeekOfYear As Integer]]) As Long
Qolote guma:
The extracted part for the given date.
Parameters:
interval - A string expression from the following table, specifying the date interval.
interval (string value)
Tittirsha
yyyy
Diro
q
Bocuboco
m
Agana
y
Diri barra
w
Loosubarruwa
ww
Diri lamala
d
Barra
h
Saate
n
Daqiiqa
s
Sakonde
date - The date from which the result is calculated.
Date literals allow to specify unambiguous date variables that are independent from the current language. Literals are enclosed between hash signs #. Possible formats are:
#yyyy-mm-dd#
#mm/dd/yyyy#
firstdayofweek: An optional parameter that specifies the starting day of a week.
firstdayofweek value
Xawishsha
0
Amuraatu gadimmate guma horonsi'ri
1
Sambata(gadimma)
2
Sanyo
3
Masanyo
4
Roowe
5
Hamuse
6
Arbe
7
Qidaame
firstweekofyear: An optional parameter that specifies the starting week of a year.