Description
The function date returns the value of the given parameter as a date, if possible. It is useful for converting strings that contain date information into a date format that can be processed in Smenso.
Syntax
date(date)
Arguments
| Argument | Description |
|---|---|
| date | The parameter to be converted into a date format. This can be a string containing a date (e.g., "2021-05-03T15:00Z"). |
Return Types
The function returns the date in the corresponding date format, as interpreted by Smenso.
Examples
| Formula | Result |
|---|---|
| date("2021-05-03T15:00Z") | Mon May 03 2021 17:00:00 GMT+0200 (Central European Summer Time) |
| date("2023-12-01") | Fri Dec 01 2023 00:00:00 GMT+0100 (Central European Time) |
Notes
- The function only works if the parameter contains a valid date. Invalid inputs may result in errors or return no result.
- The time value is interpreted and displayed according to the user's time zone.
- This function is especially useful when date operations are required in combination with other functions or calculations.
Comments
0 comments
Please sign in to leave a comment.