What are some of the methods that you can use with the SelectionStart and SelectionEnd properties of MonthCalendar to calculate new dates? For example, if you wanted to calculate the date of an event that will occur 10 days from the SelectionStart date, what MonthCalendar method could you use?
What will be an ideal response?
You can use several useful methods with the SelectionStart and SelectionEnd properties of MonthCalendar to calculate new dates, including the following:
* AddDays(), which takes a double argument and adds a specified number of days to the date
* AddMonths(), which takes an int argument and adds a specified number of months to the date
* AddYears(), which takes an int argument and adds a specified number of years to the date
Many business and financial applications use AddDays(), AddMonths(), and AddYears() to calculate dates for events, such as payment for a bill. To calculate the date of an event that should occur 10 days from the SelectionStart date, you could use the AddDays() method as in: myMonthCalendar.SelectionStart.AddDays(10).
You might also like to view...
Windows 10 includes a tablet mode where gestures can be used to interact with the system
Indicate whether the statement is true or false
When creating an ACL, you must give it a unique name and specify a(n) ____ under the Value heading.
A. URL B. IP address C. TTL D. router