How do I format dates in a report
Hi, I am creating a Report Server Project in BIDS (SQL Server 2008). How do I format dates in this way (October 2010) in the number format field in properties page? Is there a different way of formatting dates? Thanks. Martine
October 27th, 2010 5:34pm

MMM yyyy should do the trick if they are real datesRgds Geoff
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 8:32pm

Thanks Geoff, The field comes from a query and is calculated as YEAR(poh.OrderDate) * 100 + MONTH(poh.OrderDate) AS OrderMonth. What's the best way to have the report formatted in the right way. Should the query be different or should I write an expression? What should the expression look like? Thanks. Martine
October 28th, 2010 4:28pm

By doing that conversion you are actually creating a string rather than a date If poh.Orderdate is stored as datetime or date in the database, simply return it as is in the query and format as MMM yyyyRgds Geoff
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2010 6:15pm

Geoff, Thanks so much! Martine
October 29th, 2010 1:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics