joecool2005 Posted January 10, 2007 Share Posted January 10, 2007 Hi,How do you count the number of days if my expire date is 2007/02/28? Link to comment Share on other sites More sharing options...
jesh Posted January 10, 2007 Share Posted January 10, 2007 You can create a javascript date for February 28, 2007 and another date for the current date. Then you could subtract the current date from the future date to get the number of milliseconds from now to that future date. Then you could divide that number by 86400000 (the number of milliseconds in a day) to get the number of days to the future date.I hope this helps! Link to comment Share on other sites More sharing options...
pulpfiction Posted January 10, 2007 Share Posted January 10, 2007 Javascript code of what jesh mentioned....http://www.javascriptkit.com/javatutors/datedifference.shtml Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now