MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Date & Time functions  TimeDay

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int TimeDay( datetime date)
Returns day of month (1 - 31) for the specified date.
Parameters:
date   -   Datetime as number of seconds elapsed since midnight (00:00:00), January 1, 1970.
Sample:
  int day=TimeDay(D'2003.12.31');
  // day is 31