I want to convert DateTime to text and concate with text.
declare @AssignDate datetime
set @AssignDate =getdate()
select 'Date: ' + convert(char(16),@AssignDate)
But my output is coming like: Date: Oct 9 2012 3:0,
My output should be “Date: 09/10/2012 15:30”
There isn’t a single CONVERT format that will work, but you can do it in two parts.