Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

i have a dropdown list 'financial year' which populates data from database. filled data are 13,14,15,16. i need to make look it as 15-16,13-14,12-13. how can i do that without altering databse

What I have tried:

i dont have any idea. some one please help me
Posted
Updated 2-Jun-16 0:35am

1 solution

Will this do it?
C#
SELECT CONVERT (NVARCHAR(10), year - 1) + '-' + CONVERT (NVARCHAR(10), year) AS Span FROM tabYears
 
Share this answer
 
v2
Comments
SanuKhan 3-Jun-16 0:53am    
@OriginalGriff Thx alot. it worked.
OriginalGriff 3-Jun-16 3:00am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900