<?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>RedSouljaz Blog</title>
	<atom:link href="http://redsouljaz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://redsouljaz.com</link>
	<description>My Personal Blog&#039;s</description>
	<lastBuildDate>Tue, 22 Jun 2010 03:47:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ask for username and password when calling reporting service</title>
		<link>http://redsouljaz.com/2010/06/22/ask-for-username-and-password-when-calling-reporting-service/</link>
		<comments>http://redsouljaz.com/2010/06/22/ask-for-username-and-password-when-calling-reporting-service/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 03:42:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Ask for username and password]]></category>
		<category><![CDATA[Ask for username and password when calling reporting service]]></category>
		<category><![CDATA[GetFormsCredentials]]></category>
		<category><![CDATA[how to set credentials for reporting services]]></category>
		<category><![CDATA[keep asking for username and password when calling reporting services]]></category>
		<category><![CDATA[NetworkCredentials]]></category>
		<category><![CDATA[pop up authentication when calling reporting service]]></category>
		<category><![CDATA[reporting service]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=335</guid>
		<description><![CDATA[These code allow us to set username and password for reporting services to avoid popup request authentication.
This code tested in Visual Studio 2008 and Reporting Services from SQL Server 2005
First create a class called ReportServerCredentials.vb

Imports Microsoft.VisualBasic
Imports Microsoft.Reporting.WebForms
Imports System.Security.Principal

Public NotInheritable Class ReportServerCredentials
    Implements IReportServerCredentials

    Public ReadOnly Property ImpersonationUser() As WindowsIdentity [...]]]></description>
			<content:encoded><![CDATA[<p>These code allow us to set username and password for reporting services to avoid popup request authentication.</p>
<p>This code tested in Visual Studio 2008 and Reporting Services from SQL Server 2005</p>
<p>First create a class called ReportServerCredentials.vb</p>
<pre class="brush: vb;">
Imports Microsoft.VisualBasic
Imports Microsoft.Reporting.WebForms
Imports System.Security.Principal

Public NotInheritable Class ReportServerCredentials
    Implements IReportServerCredentials

    Public ReadOnly Property ImpersonationUser() As WindowsIdentity _
            Implements IReportServerCredentials.ImpersonationUser
        Get

            'Use the default windows user.  Credentials will be
            'provided by the NetworkCredentials property.
            Return Nothing

        End Get
    End Property

    Public ReadOnly Property NetworkCredentials() As Net.ICredentials _
            Implements IReportServerCredentials.NetworkCredentials
        Get

            'Read the user information from the web.config file.
            'By reading the information on demand instead of storing
            'it, the credentials will not be stored in session,
            'reducing the vulnerable surface area to the web.config
            'file, which can be secured with an ACL.

            'User name
            Dim userName As String = _
                ConfigurationManager.AppSettings(&quot;UserName&quot;)

            If (String.IsNullOrEmpty(userName)) Then
                Throw New Exception(&quot;Missing user name from web.config file&quot;)
            End If

            'Password
            Dim password As String = _
                ConfigurationManager.AppSettings(&quot;Password&quot;)

            If (String.IsNullOrEmpty(password)) Then
                Throw New Exception(&quot;Missing password from web.config file&quot;)
            End If

            'Domain
            Dim domain As String = _
                ConfigurationManager.AppSettings(&quot;SERVERNAME&quot;)

            If (String.IsNullOrEmpty(domain)) Then
                Throw New Exception(&quot;Missing domain from web.config file&quot;)
            End If

            Return New Net.NetworkCredential(userName, password, domain)

        End Get
    End Property

    Public Function GetFormsCredentials(ByRef authCookie As System.Net.Cookie, _
                                        ByRef userName As String, _
                                        ByRef password As String, _
                                        ByRef authority As String) _
                                        As Boolean _
            Implements IReportServerCredentials.GetFormsCredentials

        authCookie = Nothing
        userName = Nothing
        password = Nothing
        authority = Nothing

        'Not using form credentials
        Return False

    End Function

End Class 
</pre>
<p>Second, add parameter key to your web.config</p>
<pre class="brush: vb;">
&lt;appSettings&gt;
&lt;add key=&quot;UserName&quot; value=&quot;UserName&quot;/&gt;
		&lt;add key=&quot;Password&quot; value=&quot;Password&quot;/&gt;
		&lt;add key=&quot;SERVERNAME&quot; value=&quot;SERVERNAME&quot;/&gt;
&lt;/appSettings&gt;
</pre>
<p>And then add this line of code before calling reportserverURL in the report view page:</p>
<pre class="brush: vb;">
ReportViewer1.ServerReport.ReportServerCredentials = New ReportServerCredentials()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/06/22/ask-for-username-and-password-when-calling-reporting-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Email with multiple attachments from VB.NET</title>
		<link>http://redsouljaz.com/2010/06/03/send-email-with-multiple-attachments-from-vb-net/</link>
		<comments>http://redsouljaz.com/2010/06/03/send-email-with-multiple-attachments-from-vb-net/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[MailMessage]]></category>
		<category><![CDATA[Send Email from VB.NET]]></category>
		<category><![CDATA[Send Email with attachments from VB.NET]]></category>
		<category><![CDATA[Send Email with multiple attachments from VB.NET]]></category>
		<category><![CDATA[System.Net.Mail]]></category>
		<category><![CDATA[System.Net.Mail.Attachment]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=328</guid>
		<description><![CDATA[This code show how to send email multiple attachments from vb.net by using System.Net.Mail
1. This is how you use it

Dim fileAttch = New ArrayList
fileAttch.Add(&#34;C:\test.csv&#34;)
fileAttch.Add(&#34;C:\test2.csv&#34;)
fileAttch.Add(&#34;C:\test3.csv&#34;)

sendEmail.send(your_emailHost, &#34;no-reply@company.com&#34;, your_EmailTo, your_EmailSubject, your_EmailBody, your_EmailccTo, fileAttch)


2. Create a class called sendEmail.vb

Imports System.IO
Imports System.Net.Mail
Imports Microsoft.VisualBasic
Imports System

Public Class sendEmail

    Public Shared Sub send(ByVal smtpHost As String, ByVal fromEmail As String, [...]]]></description>
			<content:encoded><![CDATA[<p>This code show how to send email multiple attachments from vb.net by using System.Net.Mail</p>
<p>1. This is how you use it</p>
<pre class="brush: vb;">
Dim fileAttch = New ArrayList
fileAttch.Add(&quot;C:\test.csv&quot;)
fileAttch.Add(&quot;C:\test2.csv&quot;)
fileAttch.Add(&quot;C:\test3.csv&quot;)

sendEmail.send(your_emailHost, &quot;no-reply@company.com&quot;, your_EmailTo, your_EmailSubject, your_EmailBody, your_EmailccTo, fileAttch)
</pre>
<p><span id="more-328"></span></p>
<p>2. Create a class called sendEmail.vb</p>
<pre class="brush: vb;">
Imports System.IO
Imports System.Net.Mail
Imports Microsoft.VisualBasic
Imports System

Public Class sendEmail

    Public Shared Sub send(ByVal smtpHost As String, ByVal fromEmail As String, ByVal toEmail As String, ByVal subject As String, ByVal body As String, ByVal cc As String, Optional ByVal AttachmentFiles As ArrayList = Nothing)
        Dim mail As New MailMessage()

        '-----------------------------------
        'Set Email Address
        '-----------------------------------
        mail.From = New MailAddress(fromEmail)

        If toEmail = &quot;&quot; Then
            Throw New Exception(&quot;Error: No email address to send&quot;)
        End If
        If toEmail.Contains(&quot;;&quot;) Then
            Dim emailList As String()
            emailList = toEmail.Split(&quot;;&quot;)
            For Each email As String In emailList
                mail.To.Add(email)
            Next
        Else
            mail.To.Add(toEmail)
        End If
        If cc &lt;&gt; &quot;&quot; Then
            If cc.Contains(&quot;;&quot;) Then
                Dim ccList As String()
                ccList = cc.Split(&quot;;&quot;)
                For Each ccTo As String In ccList
                    mail.CC.Add(ccTo)
                Next
            Else
                mail.CC.Add(cc)
            End If
        End If

        '-----------------------------------
        'Set Email Address Content
        '-----------------------------------
        mail.Subject = subject
        mail.IsBodyHtml = True
        mail.Body = body

        Dim i As Integer
        Dim Attachment As System.Net.Mail.Attachment

        For i = 0 To AttachmentFiles.Count - 1
            If FileExists(AttachmentFiles(i)) Then
                Attachment = New Net.Mail.Attachment(AttachmentFiles(i))
                mail.Attachments.Add(Attachment)
            End If
        Next

        '-----------------------------------
        'Set Email Address Host
        '-----------------------------------
        Dim smtp As New SmtpClient(smtpHost)
        Try
            smtp.Send(mail)
        Catch ex As Exception
            '-------------------------------------------------
            MsgBox(&quot;Error &quot; &amp; ex.Message)
            '-------------------------------------------------
        End Try

    End Sub

    Private Shared Function FileExists(ByVal FileFullPath As String) As Boolean
        If Trim(FileFullPath) = &quot;&quot; Then Return False

        Dim f As New IO.FileInfo(FileFullPath)
        Return f.Exists

    End Function

End Class
</pre>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/06/03/send-email-with-multiple-attachments-from-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get first day of the month and last day of the month in VB.NET</title>
		<link>http://redsouljaz.com/2010/06/03/get-first-day-of-the-month-and-last-day-of-the-month-in-vb-net/</link>
		<comments>http://redsouljaz.com/2010/06/03/get-first-day-of-the-month-and-last-day-of-the-month-in-vb-net/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:31:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Finding the first and last day of the month]]></category>
		<category><![CDATA[first day of the month]]></category>
		<category><![CDATA[Get first day of the month and last day of the month in VB.NET]]></category>
		<category><![CDATA[last day of the month]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=325</guid>
		<description><![CDATA[This code show how to get first date of the month and last day of the month date.

Private Function GetFirstDayOfMonth(ByVal dtDate As DateTime) As DateTime
        Dim dtFrom As DateTime = dtDate
        dtFrom = dtFrom.AddDays(-(dtFrom.Day - 1))
      [...]]]></description>
			<content:encoded><![CDATA[<p>This code show how to get first date of the month and last day of the month date.</p>
<pre class="brush: vb;">
Private Function GetFirstDayOfMonth(ByVal dtDate As DateTime) As DateTime
        Dim dtFrom As DateTime = dtDate
        dtFrom = dtFrom.AddDays(-(dtFrom.Day - 1))
        Return dtFrom
    End Function

    Private Function GetLastDayOfMonth(ByVal dtDate As DateTime) As DateTime
        Dim dtTo As New DateTime(dtDate.Year, dtDate.Month, 1)
        dtTo = dtTo.AddMonths(1)
        dtTo = dtTo.AddDays(-(dtTo.Day))
        Return dtTo
    End Function

'if you put code like:
GetFirstDayOfMonth(&quot;2010-05-05&quot;) ' It will return = 2010-05-01
GetLastDayOfMonth(&quot;2010-05-05&quot;) ' It will return = 2010-05-31
</pre>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/06/03/get-first-day-of-the-month-and-last-day-of-the-month-in-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.NET Set Data Table to CSV File</title>
		<link>http://redsouljaz.com/2010/06/03/vb-net-set-data-table-to-csv-file/</link>
		<comments>http://redsouljaz.com/2010/06/03/vb-net-set-data-table-to-csv-file/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:22:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Data Table to CSV]]></category>
		<category><![CDATA[datatable 2 csv]]></category>
		<category><![CDATA[DataTable to CSV]]></category>
		<category><![CDATA[Set Data Table to CSV File]]></category>
		<category><![CDATA[VB.NET Set Data Table to CSV File]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=323</guid>
		<description><![CDATA[This function show how to Convert DataTable to CSV File 

    Sub SetDataTable_To_CSV(ByVal dtable As DataTable, ByVal path_filename As String, ByVal sep_char As String)
        Dim writer As System.IO.StreamWriter
        Try
          [...]]]></description>
			<content:encoded><![CDATA[<p>This function show how to Convert DataTable to CSV File </p>
<pre class="brush: vb;">
    Sub SetDataTable_To_CSV(ByVal dtable As DataTable, ByVal path_filename As String, ByVal sep_char As String)
        Dim writer As System.IO.StreamWriter
        Try
            writer = New System.IO.StreamWriter(path_filename)

            Dim _sep As String = &quot;&quot;
            Dim builder As New System.Text.StringBuilder
            For Each col As DataColumn In dtable.Columns
                builder.Append(_sep).Append(col.ColumnName)
                _sep = sep_char
            Next
            writer.WriteLine(builder.ToString())

            For Each row As DataRow In dtable.Rows
                _sep = &quot;&quot;
                builder = New System.Text.StringBuilder

                For Each col As DataColumn In dtable.Columns
                    builder.Append(_sep).Append(row(col.ColumnName))
                    _sep = sep_char
                Next
                writer.WriteLine(builder.ToString())
            Next
        Catch ex As Exception

        Finally
            If Not writer Is Nothing Then writer.Close()
        End Try
    End Sub
</pre>
<p>This is how you use it</p>
<pre class="brush: vb;">
Dim dt As New DataTable
SetDataTable_To_CSV(dt, &quot;C:\test.csv&quot;, &quot;,&quot;)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/06/03/vb-net-set-data-table-to-csv-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Its not Iron Man but its Iron baby</title>
		<link>http://redsouljaz.com/2010/06/02/its-not-iron-man-but-its-iron-baby/</link>
		<comments>http://redsouljaz.com/2010/06/02/its-not-iron-man-but-its-iron-baby/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 09:43:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Iron baby]]></category>
		<category><![CDATA[Iron Man]]></category>
		<category><![CDATA[Its not Iron Man but its Iron baby]]></category>
		<category><![CDATA[sensation video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=320</guid>
		<description><![CDATA[A VIDEO of a baby girl dressed as Iron Man has become an internet sensation after the child&#8217;s filmmaker father posted the clip on YouTube.
Iron Baby, which features Margaret transforming from toddler to iron-clad superhero, has attracted 2.6 million hits so far, the Daily Mail reports.
The parody short film was directed by Margaret&#8217;s father Patrick [...]]]></description>
			<content:encoded><![CDATA[<p>A VIDEO of a baby girl dressed as Iron Man has become an internet sensation after the child&#8217;s filmmaker father posted the clip on YouTube.</p>
<p>Iron Baby, which features Margaret transforming from toddler to iron-clad superhero, has attracted 2.6 million hits so far, the Daily Mail reports.</p>
<p>The parody short film was directed by Margaret&#8217;s father Patrick Boivin, who is a self-taught filmmaker and former comic book creator from Montreal.</p>
<p>3-D artist Jocelyn Strob Simard did the special effects for the film, including making the Iron Man costume, according to the Toronto Star.</p>
<p>The clip starts with Margaret as a bib-wearing Tony Stark, who is transformed by her mini-armoured costume into Iron Man.</p>
<p>The tiny superhero flies off to fight gun-toting toy bunnies, who she destroys with laser beams fired from the palm of her hand.</p>
<p>Costing virtually nothing, the short film took two months to make.</p>
<p><code><object style="background-image:url(http://i4.ytimg.com/vi/SyoA4LXQco4/hqdefault.jpg)"  width="480" height="295"><param name="movie" value="http://www.youtube.com/v/SyoA4LXQco4&amp;hl=en_US&amp;fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/SyoA4LXQco4&amp;hl=en_US&amp;fs=1" width="480" height="295" allowScriptAccess="never" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash"></embed></object></code></p>
<p>Source: http://www.heraldsun.com.au</p>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/06/02/its-not-iron-man-but-its-iron-baby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marina Bay Sands Singapore</title>
		<link>http://redsouljaz.com/2010/05/01/marina-bay-sands-singapore/</link>
		<comments>http://redsouljaz.com/2010/05/01/marina-bay-sands-singapore/#comments</comments>
		<pubDate>Sat, 01 May 2010 02:29:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Photo Fun]]></category>
		<category><![CDATA[Marina Bay]]></category>
		<category><![CDATA[Marina Bay Sands]]></category>
		<category><![CDATA[Marina Bay Sands Singapore]]></category>
		<category><![CDATA[Sands]]></category>
		<category><![CDATA[Singapore]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=315</guid>
		<description><![CDATA[
Its Saturday morning, I took this picture at 6am. Marina Bay Sands 95% completed.
  Amazon.com Widgets
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-316" title="sands" src="http://redsouljaz.com/wp-content/uploads/2010/05/sands-213x299.jpg" alt="sands" width="213" height="299" /></p>
<p>Its Saturday morning, I took this picture at 6am. Marina Bay Sands 95% completed.<br />
<code><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_18a0cc34-fa14-498a-a50c-90cd554e1fbc"  WIDTH="468px" HEIGHT="60px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fredsouljaz-20%2F8009%2F18a0cc34-fa14-498a-a50c-90cd554e1fbc&#038;Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fredsouljaz-20%2F8009%2F18a0cc34-fa14-498a-a50c-90cd554e1fbc&#038;Operation=GetDisplayTemplate" id="Player_18a0cc34-fa14-498a-a50c-90cd554e1fbc" quality="high" bgcolor="#ffffff" name="Player_18a0cc34-fa14-498a-a50c-90cd554e1fbc" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="60px" width="468px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fredsouljaz-20%2F8009%2F18a0cc34-fa14-498a-a50c-90cd554e1fbc&#038;Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></code></p>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/05/01/marina-bay-sands-singapore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set command Timeout for getData() in TableAdapter</title>
		<link>http://redsouljaz.com/2010/02/04/how-to-set-command-timeout-for-getdata-in-tableadapter/</link>
		<comments>http://redsouljaz.com/2010/02/04/how-to-set-command-timeout-for-getdata-in-tableadapter/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 04:26:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Accesing CommandTimeout properties in a TableAdapter]]></category>
		<category><![CDATA[CommandTimeout property]]></category>
		<category><![CDATA[dataset]]></category>
		<category><![CDATA[How to set command Timeout for getData in TableAdapter]]></category>
		<category><![CDATA[set commandTimeout in TableAdapter]]></category>
		<category><![CDATA[TableAdapter]]></category>
		<category><![CDATA[xsd]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=304</guid>
		<description><![CDATA[One of the disadvantages when we using tableadapter to retrieve the data from database is they do not provide property to set command timeout (SHIT). This giving me a huge headache for my project which most of the entire project is using tableadapter instead of creating my own DAL or class.
After do some research on [...]]]></description>
			<content:encoded><![CDATA[<p>One of the disadvantages when we using tableadapter to retrieve the data from database is they do not provide property to set command timeout (SHIT). This giving me a huge headache for my project which most of the entire project is using tableadapter instead of creating my own DAL or class.<br />
After do some research on the internet, there is 1 ways to add command timeout in tableadapter dataset (.xsd file) which is</p>
<p>create new property inside partial class:<br />
Double click on xxxTableAdaper and it will show you behind code in .vb file of xsd file. Add this code inside Partial Public Class xxxDataTableAdapter</p>
<pre class="brush: vb;">
Namespace xxxTableAdapters
    Partial Public Class yyyTableAdapter
        Public WriteOnly Property CommandTimeout() As Integer
            Set(ByVal value As Integer)
                Dim i As Integer = 0
                While (i &lt; Me.CommandCollection.Length)
                    If (Me.CommandCollection(i) IsNot Nothing) Then
                        Me.CommandCollection(i).CommandTimeout = value
                    End If
                    i = (i + 1)
                End While
            End Set
        End Property
    End Class
End Namespace
</pre>
<p>And how you use it, you just add 1 line of code:</p>
<pre class="brush: vb;">
            Dim dt As New DataSet1TableAdapters.AddressTableAdapter
            dt.CommandTimeout = 120
            gridview1 = dt.GetData()
</pre>
<p>Notes:<br />
xxxTableAdapters , xxx you replace with the name of .xsd file<br />
yyyTableAdapter you replace with the name of table adapter</p>
<p>This code is tested in visual studio 2008 and 2005</p>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/02/04/how-to-set-command-timeout-for-getdata-in-tableadapter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VB.NET Date Time Format Patterns</title>
		<link>http://redsouljaz.com/2010/01/15/vb-net-date-time-format-patterns/</link>
		<comments>http://redsouljaz.com/2010/01/15/vb-net-date-time-format-patterns/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 03:00:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Date Time Format Patterns]]></category>
		<category><![CDATA[datetime format]]></category>
		<category><![CDATA[datetime format patterns]]></category>
		<category><![CDATA[VB.NET Date Time Format Patterns]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=301</guid>
		<description><![CDATA[ Standard Format Example List:



Format
Code
Result


MM/dd/yyyy
Date.Now().ToString(&#8221;d&#8221;)
1/15/2010


dddd, dd MMMM yyyy
Date.Now().ToString(&#8221;D&#8221;)
Friday, January 15, 2010


dddd, dd MMMM yyyy hh:mm	 tt
Date.Now().ToString(&#8221;f&#8221;)
Friday, January 15, 2010 11:06 AM


dddd, dd MMMM yyyy HH:mm:ss
Date.Now().ToString(&#8221;F&#8221;)
Friday, January 15, 2010 11:06:46 AM


MM/dd/yyyy h:mm tt
Date.Now().ToString(&#8221;g&#8221;)
1/15/2010 11:06 AM


MM/dd/yyyy HH:mm:ss
Date.Now().ToString(&#8221;G&#8221;)
1/15/2010 11:06:46 AM


MMMM dd
Date.Now().ToString(&#8221;m&#8221;)
January 15


dd MMM yyyy HH&#8217;:'mm&#8217;:&#8217;ss &#8216;GMT&#8217;
Date.Now().ToString(&#8221;r&#8221;)
Fri, 15 Jan 2010 11:06:46 GMT


yyyy&#8217;-'MM&#8217;-'dd&#8217;T'HH&#8217;:'mm&#8217;:&#8217;ss
Date.Now().ToString(&#8221;s&#8221;)
2010-01-15T11:06:46


yyyy&#8217;-'MM&#8217;-'dd HH&#8217;:'mm&#8217;:&#8217;ss&#8217;Z&#8217;
Date.Now().ToString(&#8221;u&#8221;)
2010-01-15 11:06:46Z


dddd, MMMM dd yyyy HH:mm:ss
Date.Now().ToString(&#8221;U&#8221;)
Friday, January [...]]]></description>
			<content:encoded><![CDATA[<div><strong> Standard Format Example List:</strong></p>
<table style="width: 100%; height: 243px;" border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="style2"><strong><span style="font-family: Arial; font-size: x-small;">Format</span></strong></td>
<td class="style1"><strong><span style="font-family: Arial; font-size: x-small;">Code</span></strong></td>
<td><strong><span style="font-family: Arial; font-size: x-small;">Result</span></strong></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">MM/dd/yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;d&#8221;)</span></td>
<td><span id="Label1">1/15/2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dddd, dd MMMM yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;D&#8221;)</span></td>
<td><span id="Label2">Friday, January 15, 2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dddd, dd MMMM yyyy hh:mm	 tt</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;f&#8221;)</span></td>
<td><span id="Label3">Friday, January 15, 2010 11:06 AM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dddd, dd MMMM yyyy HH:mm:ss</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;F&#8221;)</span></td>
<td><span id="Label4">Friday, January 15, 2010 11:06:46 AM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">MM/dd/yyyy h:mm tt</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;g&#8221;)</span></td>
<td><span id="Label5">1/15/2010 11:06 AM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">MM/dd/yyyy HH:mm:ss</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;G&#8221;)</span></td>
<td><span id="Label6">1/15/2010 11:06:46 AM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">MMMM dd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;m&#8221;)</span></td>
<td><span id="Label7">January 15</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd MMM yyyy HH&#8217;:'mm&#8217;:&#8217;ss &#8216;GMT&#8217;</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;r&#8221;)</span></td>
<td><span id="Label8">Fri, 15 Jan 2010 11:06:46 GMT</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">yyyy&#8217;-'MM&#8217;-'dd&#8217;T'HH&#8217;:'mm&#8217;:&#8217;ss</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;s&#8221;)</span></td>
<td><span id="Label9">2010-01-15T11:06:46</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">yyyy&#8217;-'MM&#8217;-'dd HH&#8217;:'mm&#8217;:&#8217;ss&#8217;Z&#8217;</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;u&#8221;)</span></td>
<td><span id="Label10">2010-01-15 11:06:46Z</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dddd, MMMM dd yyyy HH:mm:ss</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;U&#8221;)</span></td>
<td><span id="Label11">Friday, January 15, 2010 3:06:46 AM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">yyyy MMMM</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Date.Now().ToString(&#8221;y&#8221;)</span></td>
<td><span id="Label12">January, 2010</span></td>
</tr>
</tbody>
</table>
</div>
<p><span id="more-301"></span><br />
<strong> Custom Format Examples List:</strong></p>
<table style="width: 100%;" border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="style3"><strong><span style="font-family: Arial; font-size: x-small;">DayFormat Value</span></strong></td>
<td class="style1"><strong><span style="font-family: Arial; font-size: x-small;">Sample header</span></strong></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">d</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">day of the month 1 &#8211; 31</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">dd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">day of the month 01 &#8211; 31</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">ddd</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">abbreviated name of the day of the week  (Mon, Tues, Wed etc)</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">dddd</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">Full name of the day of the week (Monday, Tuesday etc)</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">h</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">12-hour clock hour (e.g. 9)</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">hh</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">12-hour clock, with a leading 0 (e.g. 09)</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">H</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">24-hour clock hour (e.g. 19)</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">HH</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">24-hour clock hour, with a leading 0 (e.g. 19)</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">t</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Abbreviated AM / PM (e.g. A or P)</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">tt</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">AM / PM</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">y</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">Year. eg. 2009 become 9</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Year. eg. 2009 become 09</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">yyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Year. 2009</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Year. 2009</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">K</span></td>
<td class="style1">
<p style="width: 293px;"><span style="font-family: Arial; font-size: x-small;">Represents the time zone information eg. +6:00</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">ss</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">Seconds with leading zero</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">m</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Minutes</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">mm</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Minutes with a leading zero</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">M</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">Month number 1-12</span></p>
</td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">MM</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Month number with leading zero 01-12</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">MMM</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Abbreviated Month Name (Jan, Feb)</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">MMMM</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Full month name (January)</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">s</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">Seconds</span></td>
</tr>
<tr>
<td class="style3"><span style="font-family: Arial; font-size: x-small;">ss</span></td>
<td class="style1">
<p style="width: 375px;"><span style="font-family: Arial; font-size: x-small;">Seconds with leading zero</span></p>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/01/15/vb-net-date-time-format-patterns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to format date time in SQL? &#8211; SQL Server Date Time Format</title>
		<link>http://redsouljaz.com/2010/01/15/how-to-format-date-time-in-sql-sql-server-date-time-format/</link>
		<comments>http://redsouljaz.com/2010/01/15/how-to-format-date-time-in-sql-sql-server-date-time-format/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 02:08:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql date format]]></category>
		<category><![CDATA[SQL Datetime format]]></category>
		<category><![CDATA[SQL Server Date Time Format]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=287</guid>
		<description><![CDATA[getdate() = Jan 14 2010 10:00:05:190PM



Format
Query
Result


USA mm/dd/yy
select convert(varchar, getdate(), 1)
01/14/10


ANSI yy.mm.dd
select convert(varchar, getdate(), 2) 
10.01.14


British/French dd/mm/yy
select convert(varchar, getdate(), 3) 
14/01/10


German dd.mm.yy
select convert(varchar, getdate(), 4) 
14.01.10


Italian dd-mm-yy
select convert(varchar, getdate(), 5) 
14-01-10


dd mon yy
select convert(varchar, getdate(), 6) 
14 Jan 10


Mon dd, yy
select convert(varchar, getdate(), 7) 
Jan 14, 10


HH:MI:SS
select convert(varchar, getdate(), 8 ) 
21:54:31


Mon dd yyyy H:MI:SS:msAM/PM
select convert(varchar, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>getdate() = Jan 14 2010 10:00:05:190PM</strong></p>
<table style="width: 100%; height: 243px;" border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="style2"><strong><span style="font-family: Arial; font-size: x-small;">Format</span></strong></td>
<td class="style1"><strong><span style="font-family: Arial; font-size: x-small;">Query</span></strong></td>
<td><strong><span style="font-family: Arial; font-size: x-small;">Result</span></strong></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">USA mm/dd/yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 1)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">01/14/10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">ANSI yy.mm.dd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 2) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">10.01.14</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">British/French dd/mm/yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 3) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">14/01/10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">German dd.mm.yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 4) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">14.01.10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">Italian dd-mm-yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 5) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">14-01-10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd mon yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 6) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">14 Jan 10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">Mon dd, yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 7) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">Jan 14, 10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">HH:MI:SS</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 8 ) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">21:54:31</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">Mon dd yyyy H:MI:SS:msAM/PM</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 9) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">Jan 14 2010  9:54:56:490PM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">USA mm-dd-yy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 10) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">01-14-10</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">JAPAN yy/mm/dd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 11) </span></td>
<td><span style="font-family: Arial; font-size: x-small;">10/01/14</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">ISO yymmdd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 12)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">100114</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd Mon yyyy HH:MI:MS:SS</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 13)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">14 Jan 2010 21:57:39:070</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">HH:MI:MS:SS</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 14)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">21:58:21:263</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">mon dd yyyy hh:miAM (or PM)</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 100)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">Jan 14 2010  9:59PM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">mm/dd/yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 101)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">01/14/2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">yyyy.mm.dd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 102)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">2010.01.14</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd/mm/yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 103)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">14/01/2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd.mm.yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 104)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">14.01.2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd-mm-yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 105)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">14-01-2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">dd mon yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 106)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">14 Jan 2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">Mon dd, yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 107)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">Jan 14, 2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">hh:mm:ss</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 108)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">21:59:59</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">Default + milliseconds mon dd yyyy hh:mi:ss:mmmAM (or PM)</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 109)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">Jan 14 2010 10:00:05:190PM</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">mm-dd-yyyy</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 110)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">01-14-2010</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">yyyy/mm/dd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 111)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">2010/01/14</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">yyyymmdd</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 112)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">20100114</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">Europe default + milliseconds dd mon yyyy hh:mm:ss:mmm(24h) </span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 113) or select convert(varchar, getdate(), 13)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">14 Jan 2010 22:00:35:107</span></td>
</tr>
<tr>
<td class="style2"><span style="font-family: Arial; font-size: x-small;">hh:mi:ss:mmm(24h)</span></td>
<td class="style1"><span style="font-family: Arial; font-size: x-small;">select convert(varchar, getdate(), 114)</span></td>
<td><span style="font-family: Arial; font-size: x-small;">22:00:40:423</span></td>
</tr>
</tbody>
</table>
<p>References:<br />
<a href="http://www.technoreader.com/SQL-Server-Date-Time-Format.aspx">http://www.technoreader.com/SQL-Server-Date-Time-Format.aspx</a><br />
<a href="http://www.sql-server-helper.com/tips/date-formats.aspx">http://www.sql-server-helper.com/tips/date-formats.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/01/15/how-to-format-date-time-in-sql-sql-server-date-time-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chinese Garden Singapore January 01 / 2009</title>
		<link>http://redsouljaz.com/2010/01/02/chinese-garden-singapore-january-01-2009/</link>
		<comments>http://redsouljaz.com/2010/01/02/chinese-garden-singapore-january-01-2009/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 11:48:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Photo Fun]]></category>
		<category><![CDATA[450D]]></category>
		<category><![CDATA[canon]]></category>
		<category><![CDATA[Chinese garden]]></category>
		<category><![CDATA[japanese garden]]></category>
		<category><![CDATA[Singapore]]></category>

		<guid isPermaLink="false">http://redsouljaz.com/?p=279</guid>
		<description><![CDATA[These are a view photo that I took from my Canon 450D. The location of this is Chinese garden in Singapore. I must say, it is very beautiful park they got in there. Is not only Chinese garden, but there is also Japanese garden. 
]]></description>
			<content:encoded><![CDATA[<p>These are a view photo that I took from my Canon 450D. The location of this is Chinese garden in Singapore. I must say, it is very beautiful park they got in there. Is not only Chinese garden, but there is also Japanese garden. </p>
<div class="flickr-photos"><a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4236456878/chinese-garden-2010-jan-01-img_6117.html" rel="album-72157623118716996" id="photo-4236456878" title="IMG_6117"><img src="http://farm5.static.flickr.com/4029/4236456878_ec6b393833_t.jpg" width="100" height="67" alt="IMG_6117" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4235681205/chinese-garden-2010-jan-01-img_6101.html" rel="album-72157623118716996" id="photo-4235681205" title="IMG_6101"><img src="http://farm5.static.flickr.com/4043/4235681205_51fc9b4cee_t.jpg" width="100" height="67" alt="IMG_6101" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4235680847/chinese-garden-2010-jan-01-img_6088.html" rel="album-72157623118716996" id="photo-4235680847" title="IMG_6088"><img src="http://farm3.static.flickr.com/2717/4235680847_25b67fa331_t.jpg" width="67" height="100" alt="IMG_6088" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4236456048/chinese-garden-2010-jan-01-img_6087.html" rel="album-72157623118716996" id="photo-4236456048" title="IMG_6087"><img src="http://farm5.static.flickr.com/4021/4236456048_1bcea8ac36_t.jpg" width="100" height="67" alt="IMG_6087" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4236455864/chinese-garden-2010-jan-01-img_6037.html" rel="album-72157623118716996" id="photo-4236455864" title="IMG_6037"><img src="http://farm5.static.flickr.com/4071/4236455864_865651abf0_t.jpg" width="100" height="67" alt="IMG_6037" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4235680241/chinese-garden-2010-jan-01-img_6027.html" rel="album-72157623118716996" id="photo-4235680241" title="IMG_6027"><img src="http://farm5.static.flickr.com/4045/4235680241_85fdd548d5_t.jpg" width="67" height="100" alt="IMG_6027" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4236455522/chinese-garden-2010-jan-01-img_6008.html" rel="album-72157623118716996" id="photo-4236455522" title="IMG_6008"><img src="http://farm5.static.flickr.com/4048/4236455522_6979b9ab19_t.jpg" width="67" height="100" alt="IMG_6008" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4236455324/chinese-garden-2010-jan-01-img_6007.html" rel="album-72157623118716996" id="photo-4236455324" title="IMG_6007"><img src="http://farm3.static.flickr.com/2540/4236455324_e7673279fc_t.jpg" width="100" height="67" alt="IMG_6007" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4235679615/chinese-garden-2010-jan-01-img_6005.html" rel="album-72157623118716996" id="photo-4235679615" title="IMG_6005"><img src="http://farm3.static.flickr.com/2513/4235679615_cd64ea4b8d_t.jpg" width="100" height="67" alt="IMG_6005" /></a> <a class="tt-flickr tt-flickr-Thumbnail" href="http://redsouljaz.com/myflickr/photo/4236454980/chinese-garden-2010-jan-01-pagoda.html" rel="album-72157623118716996" id="photo-4236454980" title="Pagoda"><img src="http://farm3.static.flickr.com/2629/4236454980_c806083cf2_t.jpg" width="67" height="100" alt="Pagoda" /></a> </div>
]]></content:encoded>
			<wfw:commentRss>http://redsouljaz.com/2010/01/02/chinese-garden-singapore-january-01-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
