aspnetdev
asked on
How to Fromat Date in Sql Server RDLC
Hi,
I am using a parameter like this in my report
"For The Period to" & Format(Parameters!parEndin gDate.Valu e,"Short Date") and i get
1/31/2008.How do i format it to get something like January 31,2008.
Thanks,
I am using a parameter like this in my report
"For The Period to" & Format(Parameters!parEndin
1/31/2008.How do i format it to get something like January 31,2008.
Thanks,
ASKER
If do that the out put comes For the Period MMMM DD ,YYYY
Any other suggestions?
Any other suggestions?
Sorry, my mistake.. DD, YYYY should actually be in lower case -
Format(Parameters!parEndin gDate.Valu e,"MMMM dd, yyyy")
The complete list of format codes are available in this link below -
http://thavash.spaces.live.com/blog/cns!CF6232111374DFD2!197.entry
Format(Parameters!parEndin
The complete list of format codes are available in this link below -
http://thavash.spaces.live.com/blog/cns!CF6232111374DFD2!197.entry
ASKER
Its coming as MMMM dd,yyyy now.Any other ideas?
Can you retry after removing the comma like -
Format(Parameters!parEndin gDate.Valu e,"MMMM dd yyyy")
Format(Parameters!parEndin
ASKER
Nope that doesnt work either....any more suggestions?
How about -
Format(Parameters!parEndin gDate.Valu e,"MMMM dd") & "," & Format(Parameters!parEndin gDate.Valu e,"yyyy")
Format(Parameters!parEndin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I should have caught that, didn't realise parEndingDate.Value was not a datetype!
Format(Parameters!parEndin