if (dateok & timeok) { System.DateTime thislesson_datetime = default(System.DateTime); if (!string.IsNullOrEmpty(Request["form_lesson_time$form_dropdown__Hour"])) { thislesson_datetime = Convert.ToDateTime(Request["form_lesson_date"] + " " + Request["form_lesson_time$form_dropdown__Hour"] + ":" + Request["form_lesson_time$form_dropdown__Minute"] + " " + Request["form_lesson_time$form_dropdown__AMPM"]); } else { thislesson_datetime = Convert.ToDateTime(Request["form_lesson_date"] + " " + Request["form_lesson_time"]); } if (DateDiff(DateInterval.Hour, thislesson_datetime, fixed_Now) > 0 & String.Len(String.Trim(Request["form_lesson_notes"])) < 50) { errors += " Please enter detailed lesson notes."; } }
if (DateDiff(DateInterval.Hour, thislesson_datetime, fixed_Now) > 0 & String.Len(String.Trim(Request["form_lesson_notes"])) < 50) Error Name: The name 'DateDiff' Does not exist in current context.
if ((fixed_Now -thislesson_datetime).TotalHours > 0 && Request["form_lesson_notes"].Trim().Length < 50) { }
String
Len
Trim
if (DateDiff(DateInterval.Hour, thislesson_datetime, fixed_Now) > 0 && String.Len(String.Trim(Request["form_lesson_notes"])) < 50)
&
|
&&
||
if((EndDate - StartDate).TotalDays > 0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)