Download MetaTrader 5

User Defined Date and Time

To add comments, please log in or register
Tim
45
Tim  

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
35129
Alain Verleyen  
I don't think it's possible as the default value has to be a constant.
To add comments, please log in or register