Skip to content

CDateTime

CDateTime

CDateTime is a structure for working with date and time.

Description

CDateTime is a structure derived from MqlDateTime, it used for operation with date and time in controls.

Declaration

struct CDateTime

Title

#include <Tools\DateTime.mqh>

Methods

Properties
MonthNameGets month name
ShortMonthNameGets short name of the month
DayNameGets full name of the day in a week
ShortDayNameGets short name of the day in a week
DaysInMonthGets number of days in month
Get/Set methods
DateTimeGets/sets date and time
DateSets date
TimeSets time
SecSets seconds
MinSets minutes
HourSets hour
DaySets day of the month
MonSets month
YearSets year
Additional methods
SecDecSubtracts specified number of seconds
SecIncAdds specified number of seconds
MinDecSubtracts specified number of minutes
MinIncAdds specified number of minutes
HourDecSubtracts specified number of hours
HourIncAdds specified number of hours
DayDecSubtracts specified number of days
DayIncAdds specified number of days
MonDecSubtracts specified number of months
MonIncAdds specified number of months
YearDecSubtracts specified number of years
YearIncAdds specified number of years
Last updated on