Forum Discussion
Mmaria
9 years agoNew Member
Set parameter = DateTime.LocalNow()
Hello! Is there any way to set a parameter as a function? I want to set a parameter as today like this: DateTime.LocalNow(). As a default I want it to be today's date but I also want to be able...
BhaveshPatel
9 years agoSuper User
That is currently not possible. Parameters only allow values with List of Values, Any Values or other Query as the suggested values. if you have only one value that is defined using DateTime.LocalNow() then you can use that value as a suggested values using Query Option in the parameters dialog box. However, You can use the list of values as the suggested values where you have to manually select the today's date to pass the parameter's value. It is not dynamic but with the parameters in the baby stage, it would be more convenient option.