Improved flexibility for "date" command

- edited oplogic a bit
- hence also editted oplogicTest to match