How do I display/select SQL Server Datetime
column 2015-01-23 to text style January 23, 2015? I'm using SQL Server 9. The basic syntax I'm using in my query is:
SELECT LastContactDate, LastProfileReceivedDate
FROM Location
WHERE (Account_Id = '499')
I've tried using CAST (datetime, lastcontactdate, 107) as Date
and using the Convert
function. most efforts have returned the same style.
My results will show as 2015-01-11 08:48:11.677
and 2015-01-10 16:17:48.000
but I need to show simply as January 11, 2015
and January 10, 2015
. Thanks in advance for any help on this.