SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 How do I Format 20130111 Date?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

viperbyte
Posting Yak Master

USA
132 Posts

Posted - 06/13/2013 :  10:30:44  Show Profile  Reply with Quote
Good morning folks,

I'm new to SSRS and am having a hard time formatting a date field. When I run my report, the date field shows results like this:

20130111

So I need to format it. When I right click the field and select text properties/Number/Date and select "mm/dd/yyyy", I get "mm/dd/yyyy" in the report for every row instead of a properly formatted date. Can you please teach me how to format this field?

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 06/14/2013 :  01:24:30  Show Profile  Reply with Quote
the formatting works only if ase type of field is datetime. so your best bet is to bring it as date from database using CONVERT. then apply formatting in report and it should work fine

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

viperbyte
Posting Yak Master

USA
132 Posts

Posted - 06/14/2013 :  10:27:03  Show Profile  Reply with Quote
Thanks visa that worked very well.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 06/14/2013 :  10:46:52  Show Profile  Reply with Quote
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000