
Announcements
I am having an issue with a date defaulting to today. I think I figured out what needs to happen. Essentially, the variable listed in red below is sometimes not set and blank based on the selected dates in a calendar function. If its blank, It ends up patching the current date. If its blank, I want to set it as the same value shown in the green if nothing was selected. Just cant get the If/Blank statement correct.
Set(
selectedDate,
Calendar_1.StartDate
);
Set(
startTime,
DateTimeValue(Text(selectedDate,DateTimeFormat.ShortDate) &" " & TimeValue(ddTimeFrom_1.Selected.Value))
);
Set(
selectedEndDate,
Calendar_1.EndDate
);
Set(
endTime,
DateTimeValue(Text(selectedDate,DateTimeFormat.ShortDate) &" " & TimeValue(ddTimeTo_1.Selected.Value))
);
Navigate(EquipmentSelect);