LibreOffice SymbolLibreOffice Symbol

Ens cal la vostra ajuda!

DATA

Esta funció calcula una data indicada per any, mes o dia i la mostra a la formatació de la cel·la. El format per defecte d'una cel·la que conté la funció DATA és el format de data, però podeu formatar les cel·les amb qualsevol altre format numèric.

Sintaxi

DATA(Any; Mes; Dia)

Any és un enter entre 1583 i 9957 o entre 0 i 99.

Icona de nota

A ▸ LibreOfficeDev ▸ General podeu definir a partir de quin any es reconeix una entrada de dos dígits com a 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.

Icona de consell

To avoid ambiguity, always use four digits for years.


Icona de nota

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


Exemples

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

Informació tècnica

Icona de nota

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