Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Search Outlook E-mail by Subject and Sent (or Received) Time by today's date

by zakb (Pilgrim)
on Jan 20, 2003 at 09:25 UTC ( #228311=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://228311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2020-12-01 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (10 votes). Check out past polls.

    Notices?