Syntax
| Parameter | Description |
|---|---|
| date_value | Parameter of the DATESTRING function. |
Examples
Convert date to text
=DATESTRING(TODAY())
Date from serial number
=DATESTRING(44927)
Common Errors
Occurs when the argument is not a valid date serial number or is non-numeric.
Occurs for serial numbers that fall outside the valid date range.
Tips
DATESTRING is not available in all spreadsheet applications. TEXT(date, "yyyy-mm-dd") is a more portable alternative.
For control over the output format, use TEXT(A1, "MM/DD/YYYY") or TEXT(A1, "MMMM D, YYYY") — they work everywhere and give you format flexibility.
The result is a text string. You cannot do date arithmetic with it. Use it only for display purposes.
Try DATESTRING in Viztab
Import your data and use DATESTRING with 370+ other formulas. No signup required.
Open Viztab