I am using the Reporting feature in Visual Studio and I need to create a prop/variable to store the current date so I can display it on my form. I cannot seem to find the proper way to do this in the report view.
I originally tried a property of :
public DateTime CurrentDate {get;}
This did not work because there is no setter for it. To fix the problem I :
public DateTime CurrentDate{get{return DateTime.Now;}}
Thanks for the suggestions. They lead me in the right direction.
see: http://msdn.microsoft.com/en-us/library/system.datetime.now.aspx