gvamsimba
asked on
SSRS Date formatting
HI, I am using the blow expression in my SSRS report to get
the below date.
=Format(Today.Date,"dd MMM yyyy")
I am getting the date rightly as 15 Sep 2011. BUt I want to
get it as 15th Sep 2011. Is there any way in SSRS to do that ?
Many Thanks
the below date.
=Format(Today.Date,"dd MMM yyyy")
I am getting the date rightly as 15 Sep 2011. BUt I want to
get it as 15th Sep 2011. Is there any way in SSRS to do that ?
Many Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This solution covers all days...
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/e81023a3-baf3-4b3b-bf01-2e734691e1c7/
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/e81023a3-baf3-4b3b-bf01-2e734691e1c7/
Right Click on Field and open property window.
Select Number Tab and select format as date and also choose options as you like (DD/MM/YY, MM-DD-YYYY etc. etc.)
Select Number Tab and select format as date and also choose options as you like (DD/MM/YY, MM-DD-YYYY etc. etc.)
ASKER
HI SThaya your solution below is giving the date as I wanted like 15th sep 2011. But what if I want th to be as a degree on top of 15. because normally th will be like a degree on top of the day.
=DatePart("d",Today.Date)& "th "& Left(MonthName(Month(Today .Date)),3) &" "&
Year(Today.Date)
=DatePart("d",Today.Date)&
Year(Today.Date)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can also use the Date Format Options from the Property for the particular Field...
choose custom format and type the following
dd "th" MMM yyyy