Forum

datetime help

I am trying to get the datetime of an object on the chart then add to that datetime. NewTimes = ObjectGetTimeByValue ( 0 , "start time1" , 1 , 0 ); TimeToAdd= 365 * 60 ; //convert to seconds NewTime=NewTimes+TimeToAdd; // Change time to datetime from string(hh:mm) format and carry out addition