Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to display Date only in SSRS ?

$
0
0

Hello Everyone.

I have a question as listed below.

CREATE TABLE dbo.Emp (

id int not null,

name varchar(100) null,

from_date datetime, null,

to_date nvarchar(1000) null)

I have few date columns have datetime datatype and others have nvarchar(1000). I haven't created this table and I can't able to change Table schema at this point in time.

I want to display this column in report using ssrs.

For both date columns I have to display

1) DATE part (MM/DD/YYYY)

2) in DATETIME DATA TYPE only. I can use FORMAT & FORMATDATETIME functions but those will change datatype to STRING.

When I export this report to excel and sort on any date field then it should sort from January to December only.

FOR EXAMPLE:

IDNAME FROM DATETO DATE

1FREDY 01/31/201303/31/2014

Any suggestions?

Thanks in advance..

Thanks

Fredyyyyyyyy


Viewing all articles
Browse latest Browse all 23857

Trending Articles