62,243
社区成员




public bool JudgeSameXun(DateTime startTime, DateTime endTime)
{
DateTime tempTime = DateTime.Now;
if (startTime.Day == 1)
{
tempTime = new DateTime(startTime.Year, startTime.Month, 11);
}
else if (startTime.Day > 1 && startTime.Day <= 11)
{
tempTime = new DateTime(startTime.Year, startTime.Month, 21);
}
else if (startTime.Day > 11 && startTime.Day <= 21)
{
tempTime = new DateTime(startTime.AddMonths(1).Year, startTime.AddMonths(1).Month, 1);
}
else
{
tempTime = new DateTime(startTime.AddMonths(1).Year, startTime.AddMonths(1).Month, 11);
}
if (endTime >= tempTime)
{
return true;
}
return false;
}
求鉴定。