Solved

PHP date and time code

Posted on 2006-07-03
4
429 Views
Last Modified: 2008-02-01
What's the PHP code to include time and/or date etc into a php page so that it would look somethink similar to:

Sunday, 1st December 2005 18:45 GMT?

Thanks
0
Comment
Question by:mpaert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 17032382
Try:

echo date('l, jS F Y H:i e');

-r-
0
 
LVL 14

Expert Comment

by:ThG
ID: 17033230
or you can use strftime() for localized version, using setlocale("your_locale_here");

http://it.php.net/strftime
0
 
LVL 11

Expert Comment

by:neester
ID: 17034047
echo date('r')
0
 
LVL 11

Expert Comment

by:neester
ID: 17034053
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

628 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