OK, lets take a step backwards.
Where is the code that you have provided located?
What is the DataType of fields?
- [EndTime]
- [StartTime]
- [PlannedDwnTime]
- [DowntimeTotal]
What kind of experience would you like your users to have? And what data are you attempting to capture?
You could have them enter the Time and Date for the StartTime and EndTime, which could be somewhat complicated, or you could have them just enter a Numeric Time if you don't need to store off the Date. Or do you need only one Date, Shift Start and then the amount of time worked? You could provide your users with a ComboBox with times in 15 minute increments and have them select the closest time.
What kind of Calculations or Filtering are you planning on performing on this data you capture? What do you want to show up on your reports. Are you going to need to know the specific Dates for Start and End, or are you just going to need to know the amount of hours per shift?
An old friend used to call this
Begin with End in Mind. Knowing what you want to end up with helps you figure out what you need to cover at the start.