In the footer from a report I want to print the UserID and the Date. I added a textbox with de following code: =User!UserID & " " & Globals!ExecutionTime
Now I want to change the date format in dd-MM-yyy uu:mm. This is not possible in the textbox properties because I added the UserID to the same textbox. Is there a way to change the format?
Try this:
= User!UserID & " " & Format(Globals!ExecutionTime,"dd-MM-yyyy hh:mm")
cheers,
Andrew
|||You need to use the .NET String.Format method e.g.
=User!UserID & " " & String.Format(Globals!ExecutionTime, "dd-MM-yyy uu:mm")
|||Thanks a lot! It works!
No comments:
Post a Comment