Download MetaTrader 5

User Defined Date and Time

To add comments, please log in or register
Join MQL5 Cloud Network. Millions of traders are waiting for this!
Tim
45
Tim 2014.02.08 01:45 

Hi Everyone,

I'm having a problem but sure I'm just missing something simple. I want to ask the user to input a date and time but to make it easier I want to present them with the current date and time. However, I've tried the following line but get an error and cannot work out what I'm doing wrong:

input datetime datDate = TimeCurrent(); //Set Date

Regards,

Tim

Alain Verleyen
Moderator
30739
Alain Verleyen 2014.02.08 09:02  
I don't think it's possible as the default value has to be a constant.
To add comments, please log in or register