How to assign the default Date Time ( Now ) value for optional parameter.
When assigning the now object to optional parameter below error is raised
Constant expression is required
Code:
Public Sub ReminderMail(Optional ByVal ReminderMailDate As DateTime = Now)
// Code Block
End Sub
Now
changes fairly often.