title: how to display the Event output reversly in C#?
body: <p>when i am executing following code it executes the output from 2/feb/12, i want to display the output from today date and then yesterday, then day before yesterday.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace @event
  {
      using System.Diagnostics;
      class MySample
      {
          public static void Main()
          {
              string eventLogName = "System";
              string sourceName = "BTHUSB";
              string machineName =".";
              EventLog eventLog;
              eventLog = new EventLog();
              eventLog.Log = eventLogName;
              eventLog.Source = sourceName;
              eventLog.MachineName = machineName;
              int i;
              i = 0;
  
              foreach (EventLogEntry log in eventLog.Entries)
              {
                  i = i + 1;
                  if(log.EntryType.ToString()=="Error")
                  Console.WriteLine((i)+") Entry type: {0} , Category: {1},  Data: {2}, ID: {3}, Source: {4} \n",log.EntryType,log.TimeWritten.ToLocalTime(),log.Data,log.EventID,log.Source);
              }
          }
      }
  }
  </code></pre>
  
  <p>please help me to fix this problem....</p>