Same start and end date in lightbox

I would like to allow users to select both start and end time, but only one date - in my application start and end date must be the same.

Right now I do it this way:

$(scheduler.formSection(‘time’).control[5]).change(function () {
$(scheduler.formSection(‘time’).control[1]).val($(this).val());
});

$(scheduler.formSection(‘time’).control[6]).change(function () {
$(scheduler.formSection(‘time’).control[2]).val($(this).val());
});

$(scheduler.formSection(‘time’).control[7]).change(function () {
$(scheduler.formSection(‘time’).control[3]).val($(this).val());
});

Then I need to hide those fields with CSS.

Is there a better way to achieve the same?

I don’t think that there is any better way ( you can write custom date selecting section - but it looks as even more coding ), currently there is no way to configure time section in such way.