Solved

SSRS Date Formats

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now