DatetimeSelector ValueChanged callback does not include PreviousValue
DatetimeSelector widget's protected methods: onDateEdited(), onTimeEdited(), and onTimeZoneChanged() do not include the previous value from the "evt" struct passed into them with the "evtOut" struct they then pass to the ValueChanged callback in App Designer.
Result is that the callback exposed within App Designer's Code View will always have "event.PreviousValue" equal "[ ]".
https://github.com/mathworks/widgets-toolbox/blob/4028f1911f357ab3fc1b70347c9e8929b23146ff/widgets/%2Bwt/DatetimeSelector.m#L316
Issue can be corrected by recording widget's current Value at the top of these functions, before edits are made.
newValue = evt.Source.Value; % Already present previousValue = obj.Value; % Added previousValue variable
Then including the previousValue in evtOut
evtOut = wt.eventdata.ValueChangedData(obj.Value, previousValue); % Modified evtOut