Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42321

Leap year problem

$
0
0
Hi all,

I have made an application in VS. Part of the calculation need to calculate the number of days between two dates. BUT if the two dates span the 29 February (leap year) i need the number of dates to be -1. If it doesnt then the number of days between the dates are to be normal.

Textbox1 = Start Date
Textbox2 = End Date
Textbox3 = number of days


can anyone help with this?

Thanks in advance

Chris

Viewing all articles
Browse latest Browse all 42321

Trending Articles



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