Calculate time different between PM and AM in c# windows phone 7
<p>I am trying to calculate time difference in PM and AM.</p>

<p>I have data of <strong>Monday 1:01 PM and tuesday 1:00AM</strong>.</p>

<p>I used below code to calculate the time difference.</p>

<p>And the result i get is:</p>

<p><strong>-12 hour and -1 minutes</strong></p>

<p>How should i go about doing it getting the correct time difference?</p>

<p>Below is the code:</p>

<pre><code>if ((dayNow == "Monday") &amp;&amp; (tues == "True"))
{
    DateTime timeNow = DateTime.ParseExact(DateTime.Now.ToShortTimeString(), 
        "h:mm tt", new DateTimeFormatInfo());    
    DateTime timeSelected = DateTime.ParseExact(timePicker.ValueString, 
        "h:mm tt", new DateTimeFormatInfo());    
    TimeSpan timeLeft = timeSelected.Subtract(timeNow);

    if (timeSelected &gt; timeNow)
    {
        string hour = timeLeft.Hours.ToString();
        string minute = timeLeft.Minutes.ToString();
        string timeDifference = "This alarm is set for " + "1 day and " 
            + hour + " hour and " + minute + " minutes from now.";
        MessageBox.Show(timeDifference, "Alarm", MessageBoxButton.OK);
        NavigationService.Navigate(new Uri("/listOfAlarm.xaml?",
            UriKind.Relative));
    }
    else if (timeSelected &lt; timeNow)
    {
        string hour = timeLeft.Hours.ToString();
        string minute = timeLeft.Minutes.ToString();
        string timeDifference = "This alarm is set for " + hour + 
            " hour and " + minute + " minutes from now.";
        MessageBox.Show(timeDifference, "Alarm", MessageBoxButton.OK);
        NavigationService.Navigate(new Uri("/listOfAlarm.xaml?", 
            UriKind.Relative));
    }
    else
    {
        NavigationService.Navigate(new Uri("/listOfAlarm.xaml?", 
            UriKind.Relative));
    }
}
</code></pre>
