merrymonk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks
I want to read an Excel spreadsheet cell
a) that references another cell in the spreadsheet for example
='DataSheet'!AH39;
b) where both cells have a date format for the cell.
I am using the line
$date_req = $cell_array->[$cell_row][$cell_column];
I get from this the result "Win32::OLE::Variant=SCALAR(0x29093f8)"
What should I do to get the date I require?

Replies are listed 'Best First'.
Re: Reading Date Formatted Excel Cell
by Joost (Canon) on Mar 05, 2007 at 19:12 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?