I need help

 
void OnTick()
{
//---
int TicketYear=TimeYear(TimeCurrent());
int TicketMonth=TimeMonth(TimeCurrent());
int TicketDay=TimeDay(TimeCurrent());

if(TicketYear==2013 && TicketMonth==8 && TicketDay==28)
{
Print("My Month is",TicketMonth);
}
if(TicketYear==2013 && TicketMonth==6 && TicketDay==28)
{
Print("My Month is",TicketMonth);
}

}

Explanation: It can not print "My Month is 6",why? It can only print "My Month is 8".

 
that one follows specific date.. you don't notice?
 
Sorry, I can't understand, the two codes are the same.
 
19842008:
Sorry, I can't understand,

i can see that

maybe you explain us what you are trying to achieve

 
I want to achieve that it print "My Month is 6" when the date is 6 and it print "My Month is 8" when the date is 8 when I test the EA.
 
19842008:
I want to achieve that it print "My Month is 6" when the date is 6 and it print "My Month is 8" when the date is 8 when I test the EA.

Oh boy. You don't even know the basics.
 
19842008:
I want to achieve that it print "My Month is 6" when the date is 6 and it print "My Month is 8" when the date is 8 when I test the EA.
Which date are we now ?
 

i think i know

try using TimeLoca() instead of TimeCurrent() and tell us if that's what you meant

 
qjol:

i think i know

try using TimeLoca() instead of TimeCurrent() and tell us if that's what you meant


If he at least takes the time to read the mt4 doc, none of this would happened.
 
deysmacro:

If he at least takes the time to read the mt4 doc, none of this would happened.

IMHO (Acronyms are allowed ) he tried to change the date in his computer and the code didn't worked (of course)
 
At least I read the doc though. None of this happened to me. XD
Reason: