diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/DateAndTime.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/DateAndTime.java index 967fc9264..be988043b 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/DateAndTime.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/DateAndTime.java @@ -83,4 +83,18 @@ public final class DateAndTime { return super.clone(); } + + public boolean isEmpty() + { + return _info == 0 && _info2 == 0; + } + + @Override + public String toString() + { + if ( isEmpty() ) + return "[DTTM] EMPTY"; + + return "[DTTM] " + getDate(); + } }