I am new to sql and my company just threw me into my head and said do it. Therefore, any help is greatly appreciated. I am trying to get a date to come out in the format mm / dd / yyyy hh: mm: ss AM / PM, for example, the date 09/26/2014 11:04:54 AM. I tried using the code:
Select Convert(nvarchar,EntryDate,101) From DB1
However, this returns only 09/26/2014. I also tried
Select Convert(nvarchar,EntryDate,100) From DB1
but it returns September 26, 2014 11:04
Not sure where to go from here. Once again, thanks for the help. BTW I am using SQL Server 2012.
source share