date()
Previous  Next

date(bar_number as integer) as string

contains the date (YYYY-MM-DD) of the specified bar number for the chart that is currently displayed.
Bar number : 0 is the first bar (with the most recent date time), from the right to the left.