Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calcualte days between date with leap year

Posted on 2011-09-12
4
Medium Priority
?
347 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 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36524959
test this

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

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 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 to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

885 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