I am creating a desktop version of a program that I use a DateTimePicker formatted as Short. I have a textbox that I want to display a date based on the DateTimePicker with a very specific formula. I've looked all over the internet and can't find an answer to this very specific need.
I do not have code to share at this moment. Here is a rundown of what I do have.
I have the Date in the DateTimePicker. I have the Textbox where I want the new date. I have a formula that I need to apply to the DateTimePicker value.
The formula is X = DateTimePicker + (Y * 30).
Pretty basic but I can't figure out how to "Marry" the DateTimePicker value with the formula and get a new date.
I tried different methods based on research from forums, including StackOverflow but have had no success.
I'm hoping someone will be able to help me in getting this to work.
From the comments:
Here's an example: