Solved

SSRS Date Formats

Posted on 2011-03-18
4
955 Views
Last Modified: 2012-05-11
I am trying to format the dates to be shown as:

Friday, March 18, 2011

Why does this statement keeps complaining about converting an integer to a string?

="Date of Report: "+WeekDayName(WeekDay( Globals!ExecutionTime), 0)+", "+MonthName(Globals!ExecutionTime,0)+ str(DatePart("Day", Globals!ExecutionTime))+", "+str(DatePart("Year", Globals!ExecutionTime))
0
Comment
Question by:rwheeler23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Christopher Gordon
ID: 35172484
Is this what you're trying to do?

="Date of Report: "+ WeekDayName(WeekDay(Now()),0)+ ", " + MonthName(Month(Now())) + Day(Now()).ToString() + ", " + Year(Now()).ToString()
0
 

Author Comment

by:rwheeler23
ID: 35173527
All I wanted was the date to appear as:

Friday, March 18, 2011. I will attempt your code on Monday. Thanks.
0
 
LVL 9

Accepted Solution

by:
sureshbabukrish earned 500 total points
ID: 35179068
It should be as simple as this
="Date of Report: " & Globals!ExecutionTime.ToLongDateString()
0
 

Author Closing Comment

by:rwheeler23
ID: 35184217
That was a lot simpler than what I was trying to do.
Thank you.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question