﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Requeired Date format : 13 Sep, 2012 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 15:32:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Requeired Date format : 13 Sep, 2012</title><link>http://www.sqlservercentral.com/Forums/Topic1358433-391-1.aspx</link><description>[quote][b]Skanda (9/13/2012)[/b][hr]Hi,am using below statement in a select statement," e.expiration_date" is a date fromat column, i want the date should be displayed in 13 Sep, 2012 fromat.[b]case when ( rtrim(e.expiration_date)is null  OR RTRIM (e.expiration_date) = '') then '' else ' (Expires ' +  rtrim(e.talent_expiration_date) + ')' end +[/b]Please help[/quote]I'm lost.  Are you saying that the column e.expiration_date is defined as a date data type?Now for the standard comment, you really should do your formatting of dates in the UI (User interface, application, report, etc), not in the SQL query.</description><pubDate>Thu, 13 Sep 2012 07:54:59 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: Requeired Date format : 13 Sep, 2012</title><link>http://www.sqlservercentral.com/Forums/Topic1358433-391-1.aspx</link><description>See CAST AND CONVERT [url]http://msdn.microsoft.com/en-us/library/ms187928(v=sql.105).aspx[/url]There are loads of date formats available, though you may have to truncate the time portion.You need something likeSELECT CONVERT(e.expiration_date, varchar(11), 130) AS Expiration_Date;</description><pubDate>Thu, 13 Sep 2012 04:51:24 GMT</pubDate><dc:creator>t.brown 89142</dc:creator></item><item><title>Requeired Date format : 13 Sep, 2012</title><link>http://www.sqlservercentral.com/Forums/Topic1358433-391-1.aspx</link><description>Hi,am using below statement in a select statement," e.expiration_date" is a date fromat column, i want the date should be displayed in 13 Sep, 2012 fromat.[b]case when ( rtrim(e.expiration_date)is null  OR RTRIM (e.expiration_date) = '') then '' else ' (Expires ' +  rtrim(e.talent_expiration_date) + ')' end +[/b]Please help</description><pubDate>Thu, 13 Sep 2012 03:39:28 GMT</pubDate><dc:creator>Minnu</dc:creator></item></channel></rss>