Google Sheets - DATE function

DATE function generates a date given year, month, and day. For example, DATE(2020, 5, 18) returns 5/18/2020.

Syntax

DATE(year, month, day)

Example


Notes

  1. If a month or day is too big or small to be legitimate date, it will be converted silently. For example, if the month part is 13, it will be automatically converted into 1 by adding 1 to the year part. Similar is for the day part.
  2. Decimals will be truncated so 12.75 is same as 12.
  3. Year should be between 0 and 9999.

Comments

Popular posts from this blog

Excel - Solver examples

Excel - Pivot Table

Excel - Convert between mile, kilometer and meter