我有开始日期和结束日期,.I需要计算有多少个季度,如果我有2个季度,我需要使用C#显示从哪个日期到第一个季度的日期,也是第二个季度。
提前感谢
发布于 2010-11-25 15:39:02
我想你需要这样的东西吧?
DateTime curDt = startDate;
while(curDt <= endDate)
{
//curDt is the curent quarter
curDt = curDt.AddMonth(3);//if you define quarter as 3 monthes
}https://stackoverflow.com/questions/4274602
复制相似问题