Deletion of file based on the fixed date

 

Hi Experts,

I am very much new to use MetaEditor. I have a simple requirement like I need to delete a file whenever the current date(i.e., System Date) = Specified Date(May be hard coded to some date).

Can you please help me out how can I achieve this. I couldn't found any function which returns the 'Current Date' and one more issue which i faced  like how to hard code a date(Format of the Date).

Since I am new to this, I am unable to debug the Code as well.

If any one have any idea please share with me to resolve it.


Thanks in Advance,

Siva

 
siva.sainadham: I couldn't found any function which returns the 'Current Date' and one more issue which i faced  like how to hard code a date(Format of the Date).
  1. You didn't try very hard. Use this and you would have found: TimeCurrent() and Time[0]
  2. Datetime constants - MQL4 Documentation

 
WHRoeder:
  1. You didn't try very hard. Use this and you would have found: TimeCurrent() and Time[0]
  2. Datetime constants - MQL4 Documentation

And system date is TimeLocal.