dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: get date 90 days back from today

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102

    get date 90 days back from today

    Hello!

    Are there any tutorials or samples how to find the date(day of month, month and year) 90 days back from current date?
    Im using Flash MX version 6 and
    I find it extremely difficult to make, is there an easy way?
    Help!

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Here's one method.
    // milliseconds in one day
    oneDay = 86400000; // 24*60*60*1000

    // current day minus 60 days
    dt = new Date((new Date()).getTime() - 60*oneDay);

    trace(dt.toString());
    trace(dt.getDate() + "/" + (dt.getMonth()+1) + "/" + (1900+dt.getYear()));
    Last edited by jbum; 05-12-2004 at 06:04 PM.

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Location
    .ee
    Posts
    102
    now thats what I call extremely difficult!


    thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center