<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silverlight &#124; WPF &#124; Microsoft.Net &#187; xml</title>
	<atom:link href="http://joel.neubeck.net/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://joel.neubeck.net</link>
	<description>Simplifing structure without changing results</description>
	<lastBuildDate>Fri, 01 Apr 2011 21:34:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>T-SQL Data formating</title>
		<link>http://joel.neubeck.net/2007/07/t-sql-data-formating/</link>
		<comments>http://joel.neubeck.net/2007/07/t-sql-data-formating/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 22:48:06 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[t-sql]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://joel.neubeck.us/2007/07/t-sql-data-formating/</guid>
		<description><![CDATA[Today I was tasked with formating a SQL Datetime field as part of a FOR XML query.  More often then not, I can get away with formating in the presentation layer and leave all dates in the standard ISO8500.  Today I needed a nice looking date to be concatenated within a business name.  I stumbled across this approach which [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was tasked with formating a SQL Datetime field as part of a FOR XML query.  More often then not, I can get away with formating in the presentation layer and leave all dates in the standard ISO8500.  Today I needed a nice looking date to be concatenated within a business name.  I stumbled across this approach which uses the Convert method within SQL 2005.</p>
<ul>
<li>MON DD YYYY HH:MIAM (OR PM) &#8212; Feb 5 2003 5:54AM<br />
<strong>CONVERT(CHAR(19),GETDATE())</strong></li>
<li>MM-DD-YY FORMAT &#8212; 02-05-03<br />
<strong>CONVERT(CHAR(8),GETDATE(),10)</strong></li>
<li>MM-DD-YYYY FORMAT &#8212; 02-05-2003<br />
<strong>CONVERT(CHAR(10),GETDATE(),110)</strong></li>
<li>DD MON YYYY FORMAT &#8212; 05 Feb 2003<br />
<strong>CONVERT(CHAR(11),GETDATE(),106)</strong></li>
<li>DD MON YY FORMAT &#8212; 05 Feb 03<br />
<strong>CONVERT(CHAR(9),GETDATE(),6)</strong></li>
<li>DD MON YYYY HH:MM:SS:MMM(24H) &#8212; 05 Feb 2003 05:54:39:567<br />
<strong>CONVERT(CHAR(24),GETDATE(),113)</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://joel.neubeck.net/2007/07/t-sql-data-formating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

