gangsta1:
I am trying to print the times to my chart but the format is not correct:
Log:
2014.02.04 17:47:29.079 Expert Time Check EURUSD H1: Local Time Is.1391536049 GMT Time Is.1391536049 Current Time Is.1391543240
Code:
Yesterday this as displaying as say 17:51 which is the correct format but for some reason today its displaying like this.
I would expect it to show the datetime . . . so what you get today is correct in my opinion. Use TimeToString() with TIME_MINUTES
Edit: Ah, I guess it may be because of the + that it formatted to minutes . . .
Thank you Raptor, this solved it, the + was not an issue.
string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS);
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to print the times to my chart but the format is not correct:
Log:
2014.02.04 17:47:29.079 Expert Time Check EURUSD H1: Local Time Is.1391536049 GMT Time Is.1391536049 Current Time Is.1391543240
Code:
Yesterday this as displaying as say 17:51 which is the correct format but for some reason today its displaying like this.