Hi guys,
I'm parsing some data from the net, but Date/Time on the page I'm parsing is in Unix timestamp format (example: 16557750000 is Tue, 21 Jun 2022 01:30:00 GMT).
How to convert it, any idea?
Thanks for your help, will be very much appreciated!
Use the C++ code from this link https://www.geeksforgeeks.org/convert-unix-timestamp-to-dd-mm-yyyy-hhmmss-format/
It needs some cosmetic touch but I believe you will handle it :)
Hi guys,
I'm parsing some data from the net, but Date/Time on the page I'm parsing is in Unix timestamp format (example: 16557750000 is Tue, 21 Jun 2022 01:30:00 GMT).
How to convert it, any idea?
Thanks for your help, will be very much appreciated!
I see the time is in milliseconds
so you have to follow this
long gettime=16557750000; // get your time to parse for example 16557750000 long unixtime = gettime/1000; datetime normaltime = (datetime)unixtime; Print(normaltime);

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
I'm parsing some data from the net, but Date/Time on the page I'm parsing is in Unix timestamp format (example: 16557750000 is Tue, 21 Jun 2022 01:30:00 GMT).
How to convert it, any idea?
Thanks for your help, will be very much appreciated!