It is not suppose to be that way.

Here are a few tricks.

These explain themselves. The variables get loaded with standard EL date and time format.

Code: Select all

`LeftSideOfScreenDate = JulianToDate(GetAppInfo(aiLeftDispDateTime)); `

LeftSideOfScreenTime = DateTime2ELTime(GetAppInfo(aiLeftDispDateTime));

RightSideOfScreenDate = JulianToDate(GetAppInfo(aiRightDispDateTime));

RightSideOfScreenTime = DateTime2ELTime(GetAppInfo(aiRightDispDateTime));

For adding and subtracting seconds this link has a useful function.

viewtopic.php?f=5&t=6862

Although the function in the link above can add and subtract minutes the more common way and possibly the faster way is shown below. Of course you can add or subtract.

Code: Select all

`1MinuteBarChartTime3MinutesAheadOfLastBar = MinutesToTime(TimeToMinutes(Time) + 3);`

Minutes between bars (after you have put the bar times in NewTime and OldTime).

Code: Select all

`MinutesBetween = TimeToMinutes(NewTime) - TimeToMinutes(OldTime);`

Finding the date before the current date or 3 days before the current date

Code: Select all

`DateBeforeCurrentDate = JulianToDate(DateToJulian(CurrentDate) - 1);`

Date3daysBeforeCurrentDate = JulianToDate(DateToJulian(CurrentDate) - 3);

Finding the date after today (future date)

Code: Select all

`TomorrowsDate = JulianToDate(DateToJulian(CurrentDate) + 1);`