in reply to Re^3: Excel to CSV datetime conversion- format changes
in thread Excel to CSV datetime conversion- format changes
You'll have to fill in the '$something' yourself, and I'm not absolutely sure about the format I've specified, and you may also need an 'elsif ($something_else)' block to print the format without the hours and minutes.if ($something) { print ExcelFmt('dd/mm/yyyy hh:mm', $eSheet->{Cells}[$row][$column]-> +unformatted()) . "," } else { print $eSheet->{Cells}[$row][$column]->Value . ","; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Excel to CSV datetime conversion- format changes
by vsmeruga (Acolyte) on Apr 25, 2014 at 09:19 UTC | |
by marto (Cardinal) on Apr 25, 2014 at 09:28 UTC | |
by vsmeruga (Acolyte) on Apr 25, 2014 at 10:25 UTC | |
by marto (Cardinal) on Apr 25, 2014 at 10:33 UTC | |
by vsmeruga (Acolyte) on Apr 25, 2014 at 10:55 UTC | |
| |
by poj (Abbot) on Apr 25, 2014 at 09:56 UTC | |
by vsmeruga (Acolyte) on Apr 25, 2014 at 12:34 UTC |