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

It seems that Spreadsheet::ParseExcel isn't working properly with dates, the Excel spreadsheet has 10/01/2006, but when parsed by perl it becomes 38991. But if the dates where entered in as Oct 1 2006, this works fine. I have tried formattting excel, but I get the same results. I am using

Dates are stored in an integer format. Are you using Val or Value to get the value? Val will get the unformatted value (i.e. the integer). Show a bit of code, maybe?

Update: When I replied to one of the near duplicate nodes that you posted earlier (and this reply was moved from), you did not list any code, nor did you mention that a 2 digit year was not what you wanted. With that in mind, the replies (now) below are probably more useful. Or you could use Value with the 2 digit year, and possibly add logic to add the century on yourself. And next time, please don't make so many duplicate posts...if you're logged in, you can always update your post (though please mark updates as such so that some of us don't look so stupid answering things that are already answered).