DATE

This function calculates a date specified by year, month, day and displays it in the cell's formatting. The default format of a cell containing the DATE function is the date format, but you can format the cells with any other number format.

แƒจแƒ”แƒœแƒ˜แƒจแƒ•แƒœแƒ˜แƒก แƒฎแƒแƒขแƒฃแƒšแƒ

This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)


Syntax

DATE(แƒฌแƒ”แƒšแƒ˜; แƒ—แƒ•แƒ”; แƒ“แƒฆแƒ”)

แƒฌแƒ”แƒšแƒ˜ แƒแƒ แƒ˜แƒก แƒ แƒ˜แƒชแƒฎแƒ•แƒ˜ 1583-แƒ“แƒแƒœ 9956-แƒ›แƒ“แƒ” แƒแƒœ 0 - 99.

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

แƒ—แƒ•แƒ” แƒแƒ แƒ˜แƒก แƒ แƒ˜แƒชแƒฎแƒ•แƒ˜ 1 แƒ“แƒ 12 แƒจแƒแƒ แƒ˜แƒก แƒ’แƒแƒœแƒกแƒแƒ–แƒฆแƒ•แƒ แƒแƒ•แƒก แƒ—แƒ•แƒ”แƒก.

Day is an integer indicating the day of the month.

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

Example

=DATE(00;1;31) yields 1/31/00 if the cell format setting is MM/DD/YY.

Date & Time Functions

DATE

[text/scalc/01/func_datedif.xhp#datedif not found].

DATEVALUE

DAY

DAYS

DAYS360

EASTERSUNDAY

EDATE

EOMONTH

HOUR

[text/scalc/01/func_isoweeknum.xhp#isoweeknum not found].

MINUTE

MONTH

NETWORKDAYS

NETWORKDAYS.INTL

NOW

SECOND

TIME

TIMEVALUE

TODAY

WEEKDAY

WEEKNUM

WEEKNUM_ADD

[text/scalc/01/func_weeknum_ooo.xhp#weeknum_ooo not found].

WORKDAY

WORKDAY.INTL

YEAR

YEARFRAC

Please support us!