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 ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://228311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found