LibreOffice SymbolLibreOffice Symbol

Моля, подкрепете ни!

DATE

Тази функция изчислява дата, зададена чрез година, месец и ден, и я показва с формата на клетката. Подразбираният формат на клетка, съдържаща функцията DATE, е форматът за дата, но можете да форматирате тези клетки и с произволен друг формат.

Синтаксис

DATE(Година; Месец; Ден)

Година е цяло число между 1583 и 9957 или между 0 и 99.

Икона Бележка

В - LibreOfficeDev - Общи можете да зададете до коя година двуцифрените години да се приемат за години след 2000 г.


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.

Икона Съвет

To avoid ambiguity, always use four digits for years.


Икона Бележка

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


Примери

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

Техническа информация

Икона Бележка

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