title: Format text to date/time format c#
body: <p>I created a windows 8 app that will have a countdown timer. I have the code for the timer and it works fine, but instead of counting down from 120 seconds I want it to be displayed as 2:00 minutes and countdown from there. But because I use a timer I am not sure how to use the date/time property (if I can even do that). Please help me figure this out. </p>
  
  <p>Here is my timer code: </p>
  
  <pre><code> DispatcherTimer timer;
   private int counter = 120;
  
   public ArcadeMode()
   {
       InitializeComponent();
       timer = new DispatcherTimer();
       timer.Interval = TimeSpan.FromSeconds(1);
       timer.Tick += timer_Tick;
       timer.Start();
    }
  
    async void timer_Tick(object sender, object e)
    {
       await Time.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Low, () =&gt; { Time.Text = counter.ToString(); });
       counter--;
     }
  </code></pre>