Syntax
=TO_DATE(value)Arguments
| Argument | Required | Description |
|---|---|---|
value | Required | The number to treat as a date |
How to use TO_DATE
TO_DATE takes 1 required argument. Type =TO_DATE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=TO_DATE(45292)Result =TO_DATE("abc")Result Related text functions
- TEXTAFTERReturns the text that comes after a delimiter.
- TEXTBEFOREReturns the text that comes before a delimiter.
- TEXTJOINJoins texts and ranges with a delimiter between them, optionally skipping empty values.
- TEXTSPLITSplits text into columns and rows at the delimiters you give.
- TO_DOLLARSReturns a number as a currency value (the number itself; other values are returned unchanged).
- TO_PERCENTReturns a number as a percentage value (the number itself; other values are returned unchanged).
- TO_PURE_NUMBERReturns a value as a plain number without date, percent or currency meaning; numeric text is converted.
- TO_TEXTConverts a value to text.
- TRIMRemoves spaces from the start and end of text and turns runs of spaces inside it into single spaces.