Solved

SSRS Date Formats

Posted on 2011-03-18
4
958 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

631 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