Date editor bugfix: set an initial value only when relevant