Here's what i need to do.
on my webpage i have three boxes one for each date, month and year.
I need to compare todays date and this date (from textboxes)
and see if the difference is more than 10 months.
I dont know how to calculat the difference in months.
One thing which comes to my mind is to use every month as 30 days in that case i get the dates difference in milliseconds and then divide by some numbers to get exact difference in month but its not the accurate way to do it.
If someone knows any better way please let me know.
Thanks.
on my webpage i have three boxes one for each date, month and year.
I need to compare todays date and this date (from textboxes)
and see if the difference is more than 10 months.
I dont know how to calculat the difference in months.
One thing which comes to my mind is to use every month as 30 days in that case i get the dates difference in milliseconds and then divide by some numbers to get exact difference in month but its not the accurate way to do it.
If someone knows any better way please let me know.
Thanks.