S
S
SwoDs2016-12-06 11:29:09
PHP
SwoDs, 2016-12-06 11:29:09

How to get normal date from phpexcel?

I am importing an xlsx file, there are fields with a date like 02/20/2014 when I get them in an array, the date becomes
02-20-14 delimiter "-" like so:

if the separator is a hyphen (-) or a period (.), then the use of the European dmy format is assumed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
ukoHka, 2016-12-06
@ukoHka

str_replace("-","/",$datefromexcel);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question