Difference between two dates

Hi Guys,

How to calculate the Difference between two dates in Corona ?

Say date 1: Sept 09, 1988
date 2 :Dec 10,2011

How to calculate the differences of these two dates in term of Years,months and days.

Just like to calculate the Age Algorithm.
Thanks

Mila [import]uid: 83418 topic_id: 18940 reply_id: 318940[/import]

Take a look at this really simple tutorial I did last week for a countdown app; http://techority.com/2011/12/07/making-a-countdown-app-with-corona-sdk/

It works out the difference in time between the current time and Christmas day.

I think it will help you. (You’d just have to add years as well, this does days, hours and minutes.)

Peach :slight_smile: [import]uid: 52491 topic_id: 18940 reply_id: 73028[/import]