I have a experience table in my sql sever database having following columns:
exp_id int,
u_id int ,
exp_jobtitle varchar(100),
exp_company varchar(100),
exp_startdate date,
exp_enddate varchar(50),
exp_working varchar(50),
exp_description varchar(2000),
If I am currently working in that particular job then nothing is inserted in exp_enddate column but Currently Working in exp_working column.
And in the frontend I am showing the result like this:
If my job is ended May 2015 - June 2015 and the problem occurs when I am currently working
I want this output May 2015 - Currently Working
And I'm getting output like this
May 2015 - Jan 1900Currently Working
Through this query :-
select right(convert(varchar(50), cast('exp_enddate' as date), 106), 8)
How can I avoid this default date or Is there any other way to get the desired output?
May 2015 - Currently Working