Incorrect typecast of dates in RTF format

resolves #9