Pulling data out of strings

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ADTRAN
Forum Newbie
Posts: 10
Joined: Fri Jun 09, 2006 4:39 pm

Pulling data out of strings

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sscanf() may be of interest.. explode() too.
Post Reply