GetTime()
GetTime()
Definition
Returns the time stamp at the current bar index value.
This method will return what is displayed in the chart’s data box. For formatting purposes, the value returned is NOT guaranteed to be equal to the TimeSeries value. If you are using daily bars and need the session end time, you should use Bars.GetSessionEndTime() instead.
Method Return Value
A DateTime structure that represents the time stamp at the desired bar index.
Syntax
Bars.GetTime(int index)

