function setUniformTime(h,thisdatestr,type)

%% Sets the start or end time edit boxes to the value of thisdatestr. Used
%% by the @calendar class "Apply" and "OK" buttons to update the @tsnode
%% panel
formatstr = get(h.Handles.COMBformat,'String');
thisformat = formatstr{get(h.Handles.COMBformat,'Value')};
if strcmp(type,'start')
    set(h.Handles.EDITstart,'String',datestr(thisdatestr,thisformat))
else
    set(h.Handles.EDITend,'String',datestr(thisdatestr,thisformat))
end
    