Solved

Calcualte days between date with leap year

Posted on 2011-09-12
4
338 Views
Last Modified: 2012-06-27
Experts,
Here's my need. If I have a loan dated 9/10/2011 with a maturity date in 30 days. Ths would mature on 10/10/2011. If the loan date was 10/15/2011 it would mature on 11/14/2011. How would my query look, to take into account leap years?
0
Comment
Question by:Frank Freese
  • 2
  • 2
4 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 36524959
test this

maturityDate:dateserial(year([LoanDate]),Month([LoanDate]),Day([LoanDate])+30)
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 36524977
you can also use

maturitydate:dateadd("d",30,[LoanDate])
0
 

Author Comment

by:Frank Freese
ID: 36525185
look good -
0
 

Author Closing Comment

by:Frank Freese
ID: 36525191
thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now