for example today is 30 nov 2013 what will be 30 dec 2013
30 nov 2013 is saturday
30 nov 2014 sunday how from 30 nov 2013 to 30 nov 2014 no days 365 now divide by 7 you will 52weeks and 1 day.you need to take balance only 1 day.
30 nov 2013 is saturday add one day 30 nov 2014 will be sunday. like that you can easily caluculate either side. only thing you have to calculate leap year also.
30 nov 2013 is saturday
30 nov 2014 sunday how from 30 nov 2013 to 30 nov 2014 no days 365 now divide by 7 you will 52weeks and 1 day.you need to take balance only 1 day.
30 nov 2013 is saturday add one day 30 nov 2014 will be sunday. like that you can easily caluculate either side. only thing you have to calculate leap year also.
No comments:
Post a Comment