Solved

Calcualte days between date with leap year

Posted on 2011-09-12
4
339 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

912 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

20 Experts available now in Live!

Get 1:1 Help Now