문제

I have to convert the following date format to m-d-Y format. How can I achieve it? $date='Thu, 20 Jun 2013 09:09:52 UTC' and what I am suppose to pass in query is 6-20-2013

Please let me know a few quick tricks.

Thanks

도움이 되었습니까?

해결책

date('m-d-Y', strtotime('Thu, 20 Jun 2013 09:09:52 UTC'))

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top