i just want to ask if you know a formula, or just VERY SIMPLE codes on how to compute days between two dates? i really don't have an idea on how to make it. thank you!
ronnel09 0 Newbie Poster
Recommended Answers
Jump to PostConvert dates to julian values, then just subtract one from the other to get number of days. There is a great article on Wikipedia that expounds the algorithm in detail (http://en.wikipedia.org/wiki/Conversion_between_Julian_and_Gregorian_calendars and
Jump to PostFWIW (For Whatever It's Worth), any serious software will convert date+time values into julian values when doing date/time arithmetic.
All 6 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
thewebhostingdi -7 Junior Poster
asrockw7 18 Junior Poster in Training
ronnel09 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.