clearing date if not set.. otherwise the db gets "" which does not work