DATE

αž’αž“αž»αž‚αž˜αž“αŸβ€‹αž“αŸαŸ‡β€‹β€‹αž”αž„αŸ’αž αžΆαž‰β€‹αž›αŸαžβ€‹αžαŸ’αž„αŸƒ, αžαŸ‚ αž¬β€‹αž†αŸ’αž“αžΆαŸ†β€‹αžŸαžšαž»αž”β€‹αžšαžœαžΆαž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹αŸ”

tip

This function is available since LibreOffice 3.6.


note

This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)


αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’β€‹β€‹

DATEDIF(Start date; End date; Interval)

αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž‚αžΊαž‡αžΆβ€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αžŠαžΎαž˜β€‹αžŠαŸ‚αž›β€‹αž™αž€β€‹αž˜αž€β€‹αžαŸ’αžšαžΌαžœβ€‹αž‚αžŽαž“αžΆαŸ”

αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹ αž‚αžΊαž‡αžΆβ€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αž»αž„αž€αŸ’αžšαŸ„αž™β€‹αžŠαŸ‚αž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž™αž€β€‹αž˜αž€β€‹αž‚αžŽαž“αžΆαŸ” αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹β€‹αžαŸ’αžšαžΌαžœαžαŸ‚β€‹αžαŸ’αž˜αžΈβ€‹αž‡αžΆαž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜αŸ”

Interval is a string that determines how the difference will be calculated. Possible values are "d", "m", "y", "ym", "md" or "yd" regardless of the current language settings.

note

When entering dates as part of formulas, slashes or dashes used as date separators are interpreted as arithmetic operators. Therefore, dates entered in this format are not recognized as dates and result in erroneous calculations. To keep dates from being interpreted as parts of formulas use the DATE function, for example, DATE(1954;7;20), or place the date in quotation marks and use the ISO 8601 notation, for example, "1954-07-20". Avoid using locale dependent date formats such as "07/20/54", the calculation may produce errors if the document is loaded under different locale settings.


tip

Unambiguous conversion is possible for ISO 8601 dates and times in their extended formats with separators. If a #VALUE! error occurs, then unselect Generate #VALUE! error in - LibreOffice Calc - Formula, button Details... in section "Detailed Calculation Settings", Conversion from text to number list box.


αžαž˜αŸ’αž›αŸƒβ€‹αžŸαž˜αŸ’αžšαžΆαž”αŸ‹ "αž…αž“αŸ’αž›αŸ„αŸ‡β€‹αž–αŸαž›"

αžαž˜αŸ’αž›αŸƒβ€‹αžαŸ’αžšαž‘αž”αŸ‹

"d"

αž…αŸ†αž“αž½αž“β€‹αžαŸ’αž„αŸƒβ€‹αžŸαžšαž»αž”β€‹αžšαžœαžΆαž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹αŸ”

"m"

αž…αŸ†αž“αž½αž“β€‹αžαŸ‚β€‹αžŸαžšαž»αž”β€‹αžšαžœαžΆαž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹αŸ”

"y"

αž…αŸ†αž“αž½αž“β€‹αž†αŸ’αž“αžΆαŸ†β€‹αžŸαžšαž»αž”β€‹αžšαžœαžΆαž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹αŸ”

"ym"

αž…αŸ†αž“αž½αž“β€‹αžαŸ‚β€‹αžŸαžšαž»αž”β€‹αž“αŸ…β€‹αž–αŸαž›β€‹αž’αŸ’αžœαžΎαž€αžΆαžšβ€‹αžŠαž€β€‹αž…αŸ†αž“αž½αž“β€‹αž†αŸ’αž“αžΆαŸ†β€‹αžšαžœαžΆαž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹β€‹αž•αŸ’αžŸαŸαž„αž‚αŸ’αž“αžΆαŸ”

"md"

αž…αŸ†αž“αž½αž“β€‹αžαŸ’αž„αŸƒβ€‹αžŸαžšαž»αž”β€‹αž“αŸ…β€‹αž–αŸαž›β€‹αž’αŸ’αžœαžΎβ€‹αž”αŸ’αžšαž˜αžΆαžŽαžœαž·αž’αžΈβ€‹αžŠαž€β€‹αžšαžœαžΆαž„β€‹αž†αŸ’αž“αžΆαŸ† αž“αž·αž„β€‹αžαŸ‚β€‹αž…αŸαž‰αž–αžΈβ€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹β€‹αžŠαŸ‚αž›β€‹αžαž»αžŸαž‚αŸ’αž“αžΆαŸ”

"yd"

αž…αŸ†αž“αž½αž“β€‹αžαŸ’αž„αŸƒβ€‹αžŸαžšαž»αž”β€‹αž“αŸ…β€‹αž–αŸαž›β€‹αž’αŸ’αžœαžΎβ€‹αž”αŸ’αžšαž˜αžΆαžŽαžœαž·αž’αžΈβ€‹αžŠαž€β€‹αžšαžœαžΆαž„β€‹αž†αŸ’αž“αžΆαŸ†β€‹αž…αŸαž‰αž–αžΈβ€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž…αžΆαž”αŸ‹αž•αŸ’αžŠαžΎαž˜ αž“αž·αž„β€‹αž€αžΆαž›αž”αžšαž·αž…αŸ’αž†αŸαž‘β€‹αž”αž‰αŸ’αž…αž”αŸ‹β€‹αžŠαŸ‚αž›β€‹αžαž»αžŸαž‚αŸ’αž“αžΆαŸ”


αž§αž‘αžΆαž αžšαžŽαŸ

αž€αžΆαžšβ€‹αž‚αžŽαž“αžΆβ€‹αžαŸ’αž„αŸƒβ€‹αž€αŸ†αžŽαžΎαžαŸ” αž”αž»αžšαžŸβ€‹αž˜αŸ’αž“αžΆαž€αŸ‹β€‹αž€αžΎαžβ€‹αž“αŸ… ៑៩៧ៀ-០ៀ-៑៧ αŸ” αžαŸ’αž„αŸƒαž“αŸαŸ‡β€‹αž‚αžΊ ្០៑្-០៦-៑៣ αŸ”

=DATEDIF("1974-04-17";"2012-06-13";"y") yields 38.

=DATEDIF("1974-04-17";"2012-06-13";"ym") yields 1.

=DATEDIF("1974-04-17";"2012-06-13";"md") yields 27.

So he is 38 years, 1 month and 27 days old.

=DATEDIF(DATE(1974,4,17);"2012-06-13";"m") yields 457, he has been living for 457 months.

=DATEDIF("៑៩៧ៀ-០ៀ-៑៧";"្០៑្-០៦-៑៣";"d") αž›αž‘αŸ’αž’αž•αž›β€‹αž‚αžΊ ៑៣៩៣៧, αž˜αžΆαž“αž“αŸαž™αžαžΆβ€‹αž‚αžΆαžαŸ‹β€‹αž˜αžΆαž“β€‹αž’αžΆαž™αž» ៑៣៩៣៧ αžαŸ’αž„αŸƒαŸ”

=DATEDIF("1974-04-17";DATE(2012;06;13);"yd") yields 57, his birthday was 57 days ago.


Date & Time Functions

DATE

[text/scalc/01/func_datedif.xhp#datedif not found].

DATEVALUE

DAY

DAYS

DAYS360

DAYSINMONTH

DAYSINYEAR

EASTERSUNDAY

EDATE

EOMONTH

HOUR

ISLEAPYEAR

[text/scalc/01/func_isoweeknum.xhp#isoweeknum not found].

MINUTE

MONTH

MONTHS

NETWORKDAYS

NETWORKDAYS.INTL

NOW

SECOND

TIME

TIMEVALUE

TODAY

WEEKDAY

WEEKNUM

WEEKNUM_ADD

[text/scalc/01/func_weeknum_ooo.xhp#weeknum_ooo not found].

WEEKS

WEEKSINYEAR

WORKDAY

WORKDAY.INTL

YEAR

YEARFRAC

YEARS

Please support us!