Date Conversion PHP

Posted on 2013-09-17
Medium Priority
Last Modified: 2013-09-17
I need to format this date differently in PHP.

Current: 2013-09-16T16:04:22+0000

Needed: August 19, 2013 at 4:04pm
Question by:Nathan Riley
1 Comment
LVL 58

Accepted Solution

Gary earned 2000 total points
ID: 39499970

$newDate = date("F dS Y \a\\t g:ma", $originalDate);

echo $newDate;

Open in new window

I'm assuming you actually want the at part as well

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
I recently worked on a Wordpress site that utilized the popular ContactForm7 (https://contactform7.com/) plug-in that only sends an email and does not save data. The client wanted the data saved to a custom CRM database. This is my solution.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question