in reply to Reading Date Formatted Excel Cell

"Win32::OLE::Variant=SCALAR(0x29093f8)" means you've got a Win32::OLE::Variant object, not a number or string value. reading the docs you should probably use the Date() method:

print $date_req->Date("ddd',' MMM dd yy"), "\n";
I don't have a win32 w/ perl available to me at the moment, so I haven't tested this.

Replies are listed 'Best First'.
Re^2: Reading Date Formatted Excel Cell
by merrymonk (Hermit) on Mar 05, 2007 at 19:31 UTC
    That worked and gave 'Thu, Mar 01 07' which is correct
    I should also have said that I wanted it in the form
    dd/mm/yy that is 01/03/07
    Therefore I changed this to >Date("dd/mm/yy")
    This nearly worked since it gave 01/mm/07
    What should mm be replaced by?
        The 'docs' say MM.
        I will try tomorrow
        Many thanks!
        MM worked as suggested
        Many thanks