MQL4 Reference
Date & Time functions
DayOfYear
Returns the current day of the year (1 means 1 January,..,365(6) does 31 December), i.e., the day of year of the last known server time.
Note: At the testing, the last known server time is modelled.
Sample:
if(DayOfYear()==245)
return(true);
|
|
|