Quantcast
Channel: Difference in months between two dates - Stack Overflow
Viewing all articles
Browse latest Browse all 46

Answer by Bhavesh Patel for Difference in months between two dates

$
0
0
int nMonths = 0;if (FDate.ToDateTime().Year == TDate.ToDateTime().Year)     nMonths = TDate.ToDateTime().Month - FDate.ToDateTime().Month;                         elsenMonths = (12 - FDate.Month) + TDate.Month;                          

Viewing all articles
Browse latest Browse all 46

Trending Articles