LibreOffice SymbolLibreOffice Symbol

Please support us!

Hàm DATE

Hàm này tính một ngày tháng được ghi rõ theo năm, tháng, ngày, và hiển thị nó theo định dạng của ô đó. Định dạng mặc định của một ô chứa hàm DATE là định dạng ngày tháng, nhưng bạn cũng có thể định dạng ô theo bất cứ định dạng số khác nào.

Cú pháp

DATE(Năm; Tháng; Ngày)

Năm là một số nguyên nằm giữa 1583 và 9957, hay giữa 0 và 99.

Biểu tượng Ghi chú

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.

Biểu tượng Gợi ý

To avoid ambiguity, always use four digits for years.


Biểu tượng Ghi chú

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


Ví dụ

=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

Biểu tượng Ghi chú

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