Setting dateTime default value in Enhanced Prompt for variables

 Greetings,

I have tried using the "Put current date/time into variable" action and then in the "select variables" in Enhanced prompt for variables I select a ReleaseDate project variable of type Date. I have tried using a temporary variable that is set in the "Put current date/time into variable" step as a default value for ReleaseDate but it the default value is always DateTime.Now. I have also tried to set the ReleaseDate project variable in the first step but with no success.  How should I go about doing this?

 

 Hi

 
I have attached an example project of how you can do this. You just need a variable to store the default date (make sure that the formatting is correct) and use this variable to set the default for the Enhanced Prompt for Variables action.
 
Hope this helps.
 
Regards,
Steve
DateTimePromptForVariables.fbz7 (1.804 KB)

Hello Stephen,

this works, I must have had the formatting incorrect… by the way what is the correct formatting?

Regards,
- Bjarki

Ok, this only works if I use dd/mm/yyyy as datTime format in put current date/time action… Is that documented somewhere in the help?

Hi

The format of the date being passed in will depend on the date time settings on your system. In particular the short date format on your system, which will be specified under Control Panel -> Regional and Language Options -> Format -> Date.

Regards,
Steve