Fixes date picker, ensures today's date is not shown when hiding, ensures that a null value is set when it's empty