User Defined Date and Time

 

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

 
I don't think it's possible as the default value has to be a constant.