calculate period between two monthcalender in C#
Posted
by Hashim Al-Arab
on Stack Overflow
See other posts from Stack Overflow
or by Hashim Al-Arab
Published on 2009-08-29T13:54:54Z
Indexed on
2010/04/02
8:23 UTC
Read the original article
Hit count: 356
I have two monthcalender in C# win application , and I need to calculate the period between then.
I need how many day between two or three month or also years
I need how many month between tow different years.
When I use :
monthcalender.selectstart.month;
this command just calculate the different between months in same year, but when move to next year the value be negative.
and same for days, I use :
monthcalender.selectstart.dayofyear;
© Stack Overflow or respective owner