http://qs1969.pair.com?node_id=228311


in reply to Search Outlook E-mail by Subject and Sent (or Received) Time by today's date

Dates are usually returned via OLE as a Variant data type.

You most likely need to do something like:

use Win32::OLE::Variant; my $ole_date = $item->{ReceivedTime}; print $ole_date->Date('dd/MM/yyyy'), ' ', $ole_date->Time('HH:mm:ss'), "\n";

Untested, but lifted from a piece of code which uses the SourceSafe OLE interface, so should work!

Try Win32::OLE::Variant for more info.
  • Comment on Re: Search Outlook E-mail by Subject and Sent (or Received) Time by today's date
  • Download Code

Replies are listed 'Best First'.
Re: Re: Search Outlook E-mail by Subject and Sent (or Received) Time by today's date
by Anonymous Monk on Jan 21, 2003 at 17:05 UTC
    Thak you very much. It worked for me and I should read some documentation on Win32::OLE. (I just learned Perl on the fly less than a year ago.) Thanks again.