I noticed that if you declare similar to the following line in your program
datetimeCompile = D'';
You get the following warning message at the time of compilation
'' - date literal string is incomplete
However, the value is correctly assigned to the variable (which is today's date). I suggest either correct the text in your online book (visit https://book.mql4.com/basics/types#14) or enhance the compiler. I found a workaround this problem for now to avoid the warning message. Here is how I do it.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I noticed that if you declare similar to the following line in your program
You get the following warning message at the time of compilation
'' - date literal string is incomplete
However, the value is correctly assigned to the variable (which is today's date). I suggest either correct the text in your online book (visit https://book.mql4.com/basics/types#14) or enhance the compiler. I found a workaround this problem for now to avoid the warning message. Here is how I do it.
It does the job without any errors or warning messages.