AAA
AAA

Reputation: 3168

Converting date formats

How can i convert a date of birth like 11/20/1978 to something like November 20, 1978 using PHP?

Thanks

Upvotes: 1

Views: 127

Answers (1)

Sarfraz
Sarfraz

Reputation: 382909

Use date and strtotime like this:

echo date('F d, Y', strtotime($your_date));

Working Example

Upvotes: 3

Related Questions