How to calculate difference between two dates
-
I want to calculate the difference between two dates and the result should get in Year,Month and Date format. While calculating the difference it should take the end date also. eg: 01/09/2012 - 30/09/2012 = 1 Month 01/02/2012 - 29/02/2012 = 1 Month 01/08/2012 - 10/08/2012 = 1 Month and 10 Days 01/01/2012 - 31/12/2012 = 1 Year 01/01/2012 - 10/01/2013 = 1 Year and 10 days
-
I want to calculate the difference between two dates and the result should get in Year,Month and Date format. While calculating the difference it should take the end date also. eg: 01/09/2012 - 30/09/2012 = 1 Month 01/02/2012 - 29/02/2012 = 1 Month 01/08/2012 - 10/08/2012 = 1 Month and 10 Days 01/01/2012 - 31/12/2012 = 1 Year 01/01/2012 - 10/01/2013 = 1 Year and 10 days
Crossposting is evil... You should never do that here, it is annoying. We wander from forum to forum willing to help. For easy/fast questions Q&A, for longer questions forums. Keep in mind that crossposting will get you downvotes though.
[www.tamautomation.com] Robots, CNC and PLC machines for grinding and polishing.