Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:57:50+00:00 2026-06-10T19:57:50+00:00

How can I calculate the days between a given date and today with as2?

  • 0

How can I calculate the days between a given date and today with as2?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:57:52+00:00Added an answer on June 10, 2026 at 7:57 pm

    go through this code

    // set up a date variable for Christmas 2006
    // (n.b. Months are in the range 0-11)
    var_Christmas = new Date(2006,11,25)
    // set up a variable for todays date
    var_Today = new Date();
    // calculate the difference in milliseconds between the dates
    difference_milliseconds = var_Christmas - var_Today;
    trace (difference_milliseconds);
    // convert millisecond difference into days
    // (n.b. 1000 ms per second, 60000 ms per minute, 3600000 ms per hour, 86400000 ms per day)
    difference_days = Math.floor(difference_milliseconds/86400000);
    trace("There are " + difference_days + " days before Christmas");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In C#, how can I calculate the number of business (or weekdays) days between
How can one calculate the number of days between two dates in C#?
How can I calculate the days between 1 Jan 2010 and (for example) 3
How can I calculate the number of work days between two dates in SQL
I need to calculate the number of business days between two dates. How can
Hi i was wondering if anyone knows how i can calculate the difference between
How can I calculate the date having only the week number and day of
How can I calculate the number of differences between two NSStrings. Example: NSString 1
Possible Duplicates: Difference between dates How to calculate the date difference between 2 dates
I'm trying to calculate the number of days between two days, but I'm running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.