To convert from RFC2822 date format to any other you will need to turn it into a unix date first
1 2 3 4 5 6 7 8 9 10 11 |
<?php $olddate = "Jun 24 2014 2:12pm"; $dog=strtotime($olddate); echo date("d-m-Y G-i-s", $dog); ?> |
To convert from RFC2822 date format to any other you will need to turn it into a unix date first
1 2 3 4 5 6 7 8 9 10 11 |
<?php $olddate = "Jun 24 2014 2:12pm"; $dog=strtotime($olddate); echo date("d-m-Y G-i-s", $dog); ?> |
© 2022 CODEHAVEN