Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Regular Contributor
mahesh_DT
Posts: 65
Registered: 11-21-2011
My Carrier: developer

Comparing two date fields.

Hello every one,

I am in a situation i.e., to compare two dates along with their month and years,

Foreg: 1st date is 1984-10-24, 2nd date 1994-12-25, How can we compare these two date. In my application I have facing problem with a logic,i.e., 1st date must be less than 2nd date. How can I achieve this,Please find me a solution.

Your help will be really appreciated,

Thank you in advance.

Please use plain text.
Trusted Contributor
Deepu_George_Jacob
Posts: 106
Registered: 12-13-2011
My Carrier: Vodafone-IN

Re: Comparing two date fields.

Take date as milliseconds and calculate difference 

Please use plain text.