LibreOffice 25.2 እርዳታ
Returns the number of date or time intervals between two given date values.
DateDiff (interval As String, date1 As Date, date2 As Date [, firstDayOfWeek As Integer [, firstWeekOfYear As Integer]]) As Double
ቁጥር
interval - A string expression from the following table, specifying the date or time interval.
date1, date2 - The two date values to be compared.
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.
| firstweekofyear value | መግለጫዎች | 
|---|---|
| 0 | የ ስርአቱን ነባር ዋጋ ይጠቀሙ | 
| 1 | ሳምንት 1 በ ጥር ወር ውስጥ የ መጀመሪያው ሳምንት ነው: 1ኛ (ነባር) | 
| 2 | ሳምንት 1 የ መጀመሪያው ሳምንት ነው አራት ወይንም ከዚያ በላይ ቀኖች የያዘ በ አመት ውስጥ | 
| 3 | ሳምንት 1 የ መጀመሪያው ሳምንት ነው ቀኖች ብቻ የያዘ በ አዲስ አመት ውስጥ | 
Sub example_datediff
    MsgBox DateDiff("d", #1/1/2005#, #2005-12-31#)
End Sub