Page 1 of 1

Pulling data out of strings

Posted: Mon Jul 17, 2006 4:31 pm
by ADTRAN
Hi, recently I've been pulling data out of excel using PHP. When I pull dates out into a string, they are in a strange format including a timestamp (I think). They look like this:

007-01-31T00:00:00.000

Anyway, I just need the numeric dates, as I wish to put them in a format like

dd/mm/yy

And I was just wondering what an easy way to extract the relevant information would be?

Thanks

Posted: Mon Jul 17, 2006 4:44 pm
by feyd
sscanf() may be of interest.. explode() too.