How to get a PC's date?

 

Hello everyone,

In one part of my EA I need to compare the local PC's date with the broker's server date, i.e. if ( DateLocal==Day()) { bla bla...

How can the PC's date be queried for this (per tick)? I don't know of a standard MQL4 function for this. Perhaps, some sort of a dll that can be used with

a combination of Windows commands?

Thank you in advance


 
 

ah, I see...

In this case TimeDay(TimeLocal()) should do the trick..

Cheers!

Reason: