LibreOffice SymbolLibreOffice Symbol

Please support us!

DATE

Táto funkcia vypočíta dátum určený rokom, mesiacom a dňom a zobrazí ho podľa formátovania danej bunky. Prednastavený formát bunky obsahujúci funkciu DATE je formát dátumu; ale je možné bunky formátovať aj iným číselným formátom.

Syntax

DATE(Rok; Mesiac; Deň)

Rok je celé číslo medzi 1583 a 9957 alebo medzi 0 a 99.

Note Icon

In - LibreOfficeDev - General you can set from which year a two-digit number entry is recognized as 20xx.


Month is an integer indicating the month. A value between 1 and 12.

Day is an integer indicating the day of the month. A value between 1 and 31.

If the values for month and day are out of bounds, they are carried over to the next digit. If you enter =DATE(2000;12;31) the result will be 2000-12-31. If, on the other hand, you enter =DATE(2000;13;31) the result will be 2001-01-31.

Tip Icon

To avoid ambiguity, always use four digits for years.


Note Icon

For Integer arguments, non-integer values are truncated to Integer.


Príklady

=DATE(00;1;31) yields the date 2000-01-31 written as 01/31/00 if the cell format setting is MM/DD/YY.

Technical information

Note Icon

This function is part of the Open Document Format for Office Applications (OpenDocument) standard.



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