This content has been marked as final. Show 5 replies
I'm Flex beginner by myself but i try to help.
Every date obj has a parameter "time" (long) that gives the number of milliseconds since midnight January 1, 1970. So just subtract date2.time minus date1.time. Now you got the difference in milliseconds. Just calculate the years, months etc. from this value.
im doing this only but when i take 2 date control,the substraction isnt coming rite.
for example the (date2-date1)/(1000*60*60*24) should return me the difference in no of days.
but it isnt.
I haven't tried that by myself. Just thinking that should do the job. If not then i can't help you. Sorry :(.
if any1 have any idea plz let me know