I want to bind Product & date together in a dropdown list
here is the sql query
Select P.Id , M.ProductId as ProId , P.Name + ',+'M.[Date] as Name
from ProductMaster as P INNER JOIN PlanMaster as M on P.Id= M.ProductId
where M.IsDelete = 'False' order by M.ProductId ASC
this works if date wasnt in datetime format
ERROR i get is
Conversion failed when converting datetime from character string.
You have to convert
M.Datetovarcharbefore you can concatenate it withP.NameIf you are using
SQL-Server, try thisEdit : if you just want the date part