detect time of currently simulated bar

Hello,

how to obtain datetime from currently simulated bar when backtesting EA.

Thank you