Podpořte nás!

DATE

Tato funkce vypočte datum zapsané jako rok, měsíc, den a zobrazí ho dle formátování dané buňky. Výchozí formát buňky obsahující funkci DATE je formát data; buňky je ale možné formátovat také jiným formátem čísla.

Syntaxe

DATE(Rok; Měsíc; Den)

Rok je celé číslo mezi 1583 a 9957 nebo mezi 0 a 99.

Ikona poznámky

Od kterého roku je zadaná dvoučíselná hodnota brána jako rok 20xx, můžete nastavit v - LibreOfficeDev - Obecné.


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.

Ikona tipu

To avoid ambiguity, always use four digits for years.


Ikona poznámky

U celočíselných argumentů se hodnoty, které celočíselné nejsou, zaokrouhlí na celé číslo dolů.


Pří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.

Technické informace

Ikona poznámky

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