ຟັງຊັນນີ້ຄິດໄລ່ວັນທີທີ່ລະບຸໂດຍ ປີ, ເດືອນ, ມື້ ແລະ ສະແດງຜົນໃນຮູບແບບຂອງຫ້ອງ. ຮູບແບບເລີ່ມຕົ້ນຂອງຫ້ອງທີ່ມີຟັງຊັນ DATE ແມ່ນຮູບແບບວັນທີ, ແຕ່ທ່ານສາມາດຈັດຮູບແບບຫ້ອງດ້ວຍຮູບແບບຕົວເລກອື່ນໆກໍໄດ້.
DATE(ປີ; ເດືອນ; ມື້)
ປີ ແມ່ນເລກຖ້ວນລະຫວ່າງ 1583 ຫາ 9957 ຫຼື ລະຫວ່າງ 0 ຫາ 99.
ໃນ ທ່ານສາມາດຕັ້ງຄ່າໄດ້ວ່າປີໃດທີ່ຕົວເລກສອງຫຼັກຈະຖືກຮັບຮູ້ວ່າເປັນ 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.
To avoid ambiguity, always use four digits for years.
=DATE(00;1;31) yields the date 2000-01-31 written as 01/31/00 if the cell format setting is MM/DD/YY.