Posted on 2006-06-13
This is properbly an easy problem, but for me I cannot work it out.
I need to find the value between 2 dates and if greater than 364, return a message saying cannot be more than 364 days.
I just cannot seem to get it to work.
if (TimeSpan ValidTill.Subtract(CurrentDay) > 364);
litError.Text = "Must be less than 1 year";