using System;
public class Program
{
public static void Main()
{
Boolean isFinished = false;
string dealYear = "2017";
string dealMonth = "6";
DateTime procDateTime = new DateTime(Convert.ToInt32(dealYear), Convert.ToInt32(dealMonth), 1);
TimeSpan timeSpan;
while(!isFinished)
{
timeSpan = DateTime.Now.AddDays(1-DateTime.Now.Date.Day) - procDateTime;
if (timeSpan.Days <= 0)
{
isFinished = true;
}
else
{
procDateTime = procDateTime.AddMonths(1);
isFinished = false;
Console.WriteLine("뭔가 한다! | " + procDateTime.ToString() + " | " + timeSpan.Days.ToString());
}
}
}
}
과거 특정 월부터 현재월까지 무언가 처리해야할때 !