Display Textblock With Latest Date on Top - Visual Studio 2010 Window Phone C#
<p>I'm new in C# and currently doing a mobile apps project which allow user to post news (store in database) and then display the news in a main page. I have completed most of the thing and the news are able to display correctly on the page (I make it to display in a textblock). However, I'mhaving the problem to display the textblock with the latest date on top. I've search through the web and I can't find any clue. Can you guys help me with it? Much appreciated for the guidance.</p>

<p>This is how I store the date into a database: </p>

<pre><code>DateTime date1 = DateTime.Now;
string date2 = date1.ToString();
if (TitleTextBox.Text.Length &gt; 0 &amp;&amp; ContentTextBox.Text.Length &gt; 0)
{
            // Create a new to-do item.
            ToDoItem newToDoItem = new ToDoItem
            {
                ItemDate = date2
            };
}
</code></pre>

<p>This is how I retrieve the date to my textblock: </p>

<pre><code>&lt;TextBlock Text="{Binding ItemDate}" /&gt;
</code></pre>

<p>Thank you in advance.</p>
