hi,
this may be tangential or oversimplifying your problem, but here it is in case it helps:
i used to do a lot with Excel and Perl, and I made things way too complicated because i kept attempting to manually convert dates to Excel's bizarre proprietary format (number of days since Jan 1, 1900, IIRC).
I later realized it's much easier if you just put it in a date format that excel already recognizes.
Excel doesn't recognize the dot delimited format you gave an example of (dd.mm.yyyy).
and it only recognizes "day-first, month-second" if you use month abbreviations (dd-Mon-yyyy, etc.)
so if you just reformat your date string to something Excel can figure out, you can probably skip any other manipulations. for your example, it might be easiest to change the string to read "05-07-2007". or even "05/07/2007". something like that.
anyhow, it works for me.
-RJ
Message Edited by rjohnson on 05-08-2007 05:07 PM