Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

PHP date and time code

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
mpaert
Asked:
mpaert
  • 2
1 Solution
 
RoonaanCommented:
Try:

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

-r-
0
 
ThGCommented:
or you can use strftime() for localized version, using setlocale("your_locale_here");

http://it.php.net/strftime
0
 
neesterCommented:
echo date('r')
0
 
neesterCommented:
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now