September 20, 2007 at 11:27 am
Hi,
I was hoping someone could tell me how I would set the value of a textbox or object to display the current date? I'm guessing I would do it using either vb.net or c#, I'm a newb at both. Appreciate any help in advance.
September 20, 2007 at 11:56 am
Add this as your expression for the textbox:
=Globals!ExecutionTime.ToLongDateString()
September 20, 2007 at 12:06 pm
Thank you qallan, is that a vb.net expression?
October 26, 2007 at 10:30 pm
wouldnt
=Today
work? after all thats wat the fuunction is for, displaying the current date.. format it if u dont want the timestamp or stuff...
October 29, 2007 at 11:19 am
Jason Thomas (10/26/2007)
wouldnt=Today
work? after all thats wat the fuunction is for, displaying the current date.. format it if u dont want the timestamp or stuff...
Yes that would work Jason, I prefer to use the formatted version so that my end users see a more friendly date.
=Today would show 10/29/2007 12:00:00 AM
=Globals!ExecutionTime.ToLongDateString() would show Monday, October 29, 2007
Also, using the built in Global function ExecutionTime I was guaranteed the time that the report was run which is what my client wanted and not today's date on a cached report.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy