patching _getdate method