Please help me to convert date format of my query.
My query
select pr.[Date], p.[Product]
from tbl_ProTest p
inner join tbl_Prod2 pr on P.[PID] = pr.[PID]
In my output I am getting date as 1990-01-01 but my expected output is 01-Jan-1990.
Try this:
This way date is cast to
VARCHARand you get it displayed in the required format. More aboutCONVERTand supported formats can be found here