Solved

PHP date and time code

Posted on 2006-07-03
4
426 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

710 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