Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

current payment due date

$
0
0

I need help with finding the CURRENT_PAYMENT_DUE_DATE after a cutoff date.

For example, say a CURRENT_PAYMENT_DUE_DATE was Wednesday, 7/31/2013. The cutoff date is 8/10/2013 and the payment frequency is 1 payment per week, due (in this case) on Wednesday. The weekly ones will always be on the same day of the week following the cutoff date. We know that the revised CURRENT_PAYMENT_DUE_DATE would be 8/14/2013, but how would I figure this out in TSQL?

I also have to do the same thing for bi-weekly, monthly, and semi-monthly. I would appreciate any tips I could get on this, even if it isn't all 4 scenarios.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>