Perhaps you should read the manual.
Converting a value containing time in seconds elapsed since 01.01.1970 into a string of "yyyy.mm.dd hh:mi" format.
TimeToString - Conversion Functions - MQL4 Reference
TimeToString - Conversion Functions - MQL4 Reference

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
Hi all,
I write a file in an expert with timestamp, OHLC and Volume obtaining something like: 1522101000,1.24556,1.24559,1.24546,1.24557,126
I would like to have something like: 2018.03.27 21:53:00,1.24556,1.24559,1.24546,1.24557,126
Here is the code:
How to obtain date format instead integers (this version is part of an expert, previously I had an indicator with exactly the same code that worked well)?
Thanks in advance