Comments (3)
Oh weird,
So a date set at March 12th and a date set at March 18th returns 6 days in between them.
And a date set at March 12th and a date set at March 19th returns 6 days in between them.
How is this possible?
from date-utils.
Yeah, I can keep getting alternating numbers between 2 and 3 for a date 3 days from now.
from date-utils.
do you have a code snippet that you can share that shows the problem?
the function itself is pretty braindead simple:
function (date) {
return ((date.clone().valueOf() - this.valueOf()) / 86400000) | 0;
}
from date-utils.
Related Issues (20)
- How do you feel about... ? HOT 1
- subtract instance methods HOT 10
- d.getMonthsBetween(date); HOT 28
- Version 2 Feature Discussion HOT 14
- Add `remove` to README
- error in the parsing of the weekday HOT 1
- getDaysBetween returns wrong number HOT 3
- No bower versions HOT 3
- How to set one special Date() object? HOT 1
- Browser support? HOT 2
- site.flatly.css contains a broken import according to cssmin
- Property 'jui' redefine problem HOT 1
- Official typescript typings HOT 3
- getMonthsBetween inconsitency HOT 7
- Method getMonthAbbrNameFromNumber doesn't exists
- SCRIPT1046: Multiple definitions of a property not allowed in strict mode
- Cannot find module 'date-utils' HOT 2
- Function add/addMonths compute error HOT 3
- on node v10,Do I still need this polyfill ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from date-utils.