<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://sql.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0">
<channel>
 <title>SQL Zone - Comments for &quot;Custom Date Formatting in SQL Server&quot;</title>
 <link>http://sql.dzone.com/news/custom-date-formatting-sql-ser</link>
 <description>Comments for &quot;Custom Date Formatting in SQL Server&quot;</description>
 <language>en</language>
<item>
 <title>This worked perfectly with</title>
 <link>http://sql.dzone.com/news/custom-date-formatting-sql-ser#comment-3113</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;This worked perfectly with only 1 change needed (to point to my previously created Regular Expression change function).  Just copied/pasted and created the function and worked perfectly!!  &lt;/p&gt;&lt;p&gt;I tweaked it to allow the time to be added to the date if you pass a &#039;Y&#039; flag as a 3rd imput varable but the only formatting that is done for this is: convert(varchar, @inputDate, 114)  &lt;/p&gt;&lt;p&gt; So if you pass &amp;quot;Y&amp;quot; to the function it will take the time from the input variable using the above function (if no time passed just formats all &amp;quot;0&amp;quot;&#039;s in the time format.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Wed, 07 May 2008 13:07:51 -0400</pubDate>
 <dc:creator>brad2575</dc:creator>
 <guid isPermaLink="false">comment 3113 at http://sql.dzone.com</guid>
</item>
</channel>
</rss>
