<?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>TechnoBlogy &#187; DateTime</title>
	<atom:link href="http://technoblogy.net/tag/datetime/feed/" rel="self" type="application/rss+xml" />
	<link>http://technoblogy.net</link>
	<description>Technology with a Big difference</description>
	<lastBuildDate>Mon, 05 Dec 2011 17:29:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Date Time string formatting in ASP.NET</title>
		<link>http://technoblogy.net/date-time-string-formatting-in-asp-net/</link>
		<comments>http://technoblogy.net/date-time-string-formatting-in-asp-net/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 11:15:15 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DateTime]]></category>
		<category><![CDATA[patterns]]></category>
		<category><![CDATA[string formatting]]></category>

		<guid isPermaLink="false">http://technoblogy.net/date-time-string-formatting-in-asp-net/</guid>
		<description><![CDATA[With the following code you can format a DateTime within a Databind. &#60;%# DateTime.Parse(Eval(&#34;DateModified&#34;).ToString()).ToString(&#34;MM-dd-yyyy&#34;)%&#62; Some more format specifiers that can change format of datetime objects the way it is required. Format specifier Name d Short date pattern D Long date pattern t Short time pattern T Long time pattern f Full date/time pattern ( short [...]]]></description>
			<content:encoded><![CDATA[<p>With the following code you can format a DateTime within a Databind.</p>
<blockquote><p>&lt;%# DateTime.Parse(Eval(&quot;DateModified&quot;).ToString()).ToString(&quot;MM-dd-yyyy&quot;)%&gt; </p>
</blockquote>
<p>Some more format specifiers that can change format of datetime objects the way it is required.</p>
<table class="data" cellspacing="1" width="50%" align="left">
<colgroup>
<col width="20%" />
<col width="25%" /></colgroup>
<tbody>
<tr>
<th>Format specifier</th>
<th>Name</th>
</tr>
<tr>
<td>d</td>
<td>Short date pattern</td>
</tr>
<tr>
<td>D</td>
<td>Long date pattern</td>
</tr>
<tr>
<td>t</td>
<td>Short time pattern</td>
</tr>
<tr>
<td>T</td>
<td>Long time pattern</td>
</tr>
<tr>
<td>f</td>
<td>Full date/time pattern ( short time )</td>
</tr>
<tr>
<td>F</td>
<td>Full date/time pattern ( long time )</td>
</tr>
<tr>
<td>g</td>
<td>General date/time pattern ( short time )</td>
</tr>
<tr>
<td>G</td>
<td>General date/time pattern ( long time )</td>
</tr>
<tr>
<td>M or m</td>
<td>Month day pattern</td>
</tr>
<tr>
<td>R or r</td>
<td>RFC1123 pattern</td>
</tr>
<tr>
<td>s</td>
<td>Sortable date/time pattern; conforms to ISO 8601</td>
</tr>
<tr>
<td>u</td>
<td>Universal sortable date/time pattern</td>
</tr>
<tr>
<td>U</td>
<td>Universal sortable date/time pattern</td>
</tr>
<tr>
<td>Y or y</td>
<td>Year month pattern</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/date-time-string-formatting-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

