Hi guys,

Here's the gist of it. I want to calculate the number of days between two DateTimePickers. Then multiply that number by 4,13. Then display THAT number in a TextBox.

I won't go into detail, you guys don't need that.

Can someone whip up some generic code?

The DateTimePicker has a Value property which returns a DateTime.
DateTime has an overloaded substraction operator which returns a TimeSpan. Use it like TimeSpan Span = DateValue2 - DateValue1;
Span will give you the difference in days : Span.Days.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.