Monday, May 11, 2009

Using DateAdd results in: Argument 'DateValue' cannot be converted to type 'Date' - ASP.NET Forums

Using DateAdd results in: Argument 'DateValue' cannot be converted to type 'Date' - ASP.NET Forums: "The DateAdd method in the VisualBasic library is expecting a DateTime type for the 3rd argument instead of a String.
perhaps you would consider doing it this way: recall1.Text = Convert.ToDateTime(QuitDateLabel.Text).AddMonths(1).ToShortDateString
Note that an exception would occur if QuitDateLabel.Text was not a valid date."

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

More Important Links

Followers