May 8, 2003 #1 strom99 MIS Nov 28, 2000 126 US I have the following field I am displaying in an HTML page 2003-04-15 14:48:18.25 How can I change my SQL to only show the 2003-04-15 or 04-15-2003 or April 15 2003 Thanks SQL Server 2000
I have the following field I am displaying in an HTML page 2003-04-15 14:48:18.25 How can I change my SQL to only show the 2003-04-15 or 04-15-2003 or April 15 2003 Thanks SQL Server 2000
May 8, 2003 #2 ClaireHCM IS-IT--Management Mar 26, 2003 772 US select convert(varchar(10),'2003-04-15 14:48:18.25',101) Upvote 0 Downvote
May 8, 2003 #3 JamesLean Programmer Dec 13, 2002 3,059 GB For better performance, you should handle data formatting from the front-end app rather than while retrieving the data from the DB, eg using ASP: Code: Response.Write FormatDateTime(rs("date_field"), 2) --James Upvote 0 Downvote
For better performance, you should handle data formatting from the front-end app rather than while retrieving the data from the DB, eg using ASP: Code: Response.Write FormatDateTime(rs("date_field"), 2) --James