How to do Flex date deduction and addition
问题 In flex, I am trying to do date deduction and addition, but couldn't find a way to do it. e.g.: public var dateNow:Date=new Date(); How can I get the Date 3 months earlier than dateNow? Thanks!!! 回答1: You can use the Date constructor for this. The first argument to Date's constructor takes either a year or a timestamp. You can use the Date.time property to get the timestamp from a date object. Once you have the timestamp you can add/subtract some number of seconds from it, and then pass it to