Skip to main content

Date - script and chart function

The date function formats the expression as a date according to the given format-code string.

Syntax:  

Date(expression [ , format-code ])

 

Another way to describe it, is to look at it as a number to string conversion. The function takes the numeric value of the expression and generates a string representing the date according to the format code. The function returns a dual value with both the string and the number.

Arguments:  

Argument Description
format-code String describing the format of the resulting string. If the format code is omitted, the date format set in the operating system is used.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!