DatePart (interval As String, date As Date [, firstDayOfWeek As Integer [, firstWeekOfYear As Integer]]) As Long
ይመልሳል ዋጋ:
The extracted part for the given date.
ደንቦች:
interval - A string expression from the following table, specifying the date interval.
interval (string value)
መግለጫዎች
yyyy
አመት
q
ሩብ
m
ወር
y
ቀን በ አመት ውስጥ
w
የ ስራ ቀን
ww
ሳምንት በ አመት ውስጥ
d
ቀን
h
ሰአት
n
ደቂቃ
s
ሰከንድ
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
መግለጫዎች
0
የ ስርአቱን ነባር ዋጋ ይጠቀሙ
1
እሑድ (ነባር)
2
ሰኞ
3
ማክሰኞ
4
ረቡዕ
5
ሐሙስ
6
አርብ
7
ቅዳሜ
firstweekofyear: An optional parameter that specifies the starting week of a year.