fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. DateTime a = new DateTime(2009, 2, 8);
  8. DateTime b = new DateTime(2009, 8, 8);
  9.  
  10. while ( a < b )
  11. {
  12. Console.WriteLine(a.ToShortDateString());
  13. a = a.AddMonths(1);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.04s 33944KB
stdin
Standard input is empty
stdout
2/8/2009
3/8/2009
4/8/2009
5/8/2009
6/8/2009
7/8/2009