Click here to Skip to main content
15,891,692 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sir i making property website so...first we sale plot ,,plot is sale full payment and laon....
one plot is cost 10000 any person want to by this plot by loan...so we take money ..through (EMI)
.......................................................LIKE THIS...............
CUSTOMER NAME..............................ANUJ
CUSTOMER ID......................................1
CUSTOMER GIVE AMOUNT ...............10000....
CUSTOMER FIRST EMI DATE..............(6-11-2015)
..............................................................................................
NOW WE WANT NEXT MONTH DUE EMI DATE..

BUT PROBLEM IS MONTH DAYS ..SOME MONTH IS 30 DAYS SOME 31 AND FEB IS 28 OR 29
SHO HOW CAN CALCULATE DUE EMI DATE FOR NEXT MONTH..


I USING ASP,NET AND SQL SERVER AND C# LANGUAGE.
Posted
Comments
George Jonsson 6-Nov-15 11:20am    
Don't use all capital letters. It is considered rude.

1 solution

Its very simple.

Just add one month to your first EMI date and calculate the next month EMI date. Just like
SQL
select dateadd(m,1,getdate())

The DATEADD() function adds or subtracts a specified time interval from a date.
SQL
DATEADD(datepart,number,date)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900