You have to remember that we can't see your screen, can't access your HDD, and can't read your mind - we only get
exactly what you type to work from.
So we have no idea what is in your data - and it seems neither do you!
So start by finding out. Use the debugger to put a breakpoint on this line:
if ["DELIVERY_DATE.NewValue"] = "00:00:00"
(Assuming it compiles, which I'm not convinced it will) and run your app. When the debugger hits the breakpoint, it will stop and let you take control of what is going on - including the ability to look at variable contents while you code is running.
Look at the field until you find a genuinely empty field (i.e. one in your data source that is empty), and it should show you what to test for.
We can't do that for you: we just don't have access to your data!