I have an object in C# which has current property.
public DateTime startDate
{
    get 
    {
        string[] ymd = Environment.GetCommandLineArgs()[2].Split('.');
        return new DateTime(Int32.Parse(ymd[2]), Int32.Parse(ymd[1]), Int32.Parse(ymd[0])); 
    }
    set { startDate = value; }
}
But when I try to use the function defined as this:
public String Calculate(){
    if (startDate > endDate)
        return "not calculable since the end date can not be before than the start date.";
    while (startDate <= endDate)
    {
        if (startDate.DayOfWeek.ToString()[0] != 'S')
            count++;
        startDate = startDate.AddDays(1);
    }
    return "not implemented yet";
Stack Overflow occurs :) Can you help me fix this?
 
     
     
    