Extract time from XML PUBDATE
Posted: Mon Jun 29, 2009 5:32 pm
I am using a XML feed that has a tag [PUBDATE] with the follwing format ex: 29 Jun 09 : 10:12:05
I would like to extract (echo) just the time in this format 10:12.
Can anyone help me with the PHP (5) code?
I have used <?= gmdate("H:i", strtotime($item["PUBDATE"]));?> ... but it prints time 00:00
Thanks.
Joao
I would like to extract (echo) just the time in this format 10:12.
Can anyone help me with the PHP (5) code?
I have used <?= gmdate("H:i", strtotime($item["PUBDATE"]));?> ... but it prints time 00:00
Thanks.
Joao