Groups | Blog | Home
all groups > sql server reporting services > february 2006 >

sql server reporting services : Custom Date Format


newsgroups NO[at]SPAM bendcycling.org
2/1/2006 1:20:05 PM
I need to change the date format from mmddyyyy to yyyymmdd and I'm not
quite sure how to accomplish it. Obviously there are default date
views, but yyyymmdd is not one of them. I'm guessing I need to create
an expression. Can someone help?

Thanks,

tp
Dan
2/1/2006 1:34:21 PM
Try putting this into a textbox.

= Format(<Database Field>, "yyyyMMdd")

This should help with all formatting inquries:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcustomdatetimeformatstrings.asp

Regards,

Dan
newsgroups NO[at]SPAM bendcycling.org
2/1/2006 1:58:42 PM
Thanks Dan. I figured it was an easy one...
Wayne Snyder
2/2/2006 7:32:59 AM
I went though the MSDN docs, and put together a small document which include
all of the formatting special characters which can be used...It might be
worth downloading and printing out if you do a lot of reporting services..

It is at www.msbicentral.com. It is in the articles section, titled
'Formatting Expressions in Reporting Services"

Hope this helps.
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC

I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.


[quoted text, click to view]
AddThis Social Bookmark Button