Super Web Mart - Discount Coupons & Deals - Discount Promos, Coupon Codes, Discount deals and web site reviews

Author Topic: Php date create code  (Read 860 times)

0 Members and 1 Guest are viewing this topic.

Offline Solushunz

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Php date create code
« on: July 25, 2011, 10:57:58 PM »
i am new in php but i have created the below code on my webpage to show the date, but its not working.
i want to see a simple format of date and time.want to know why?


Code: [Select]
<?php
echo date("l");
echo 
date('l jS \of F Y h:i:s A');
echo 
"July 1, 2000 is on a " date("l"mktime(000712000));
echo 
date("DATE");
echo 
date(DATE_ATOMmktime(000712000));
?>
« Last Edit: July 26, 2011, 12:02:07 AM by seochapter »

Webmaster Forum

Php date create code
« on: July 25, 2011, 10:57:58 PM »

Offline ajans

  • Jr. Member
  • **
  • Posts: 40
    • View Profile
Re: Php date create code
« Reply #1 on: August 16, 2011, 10:20:33 PM »
$mysql_date = date(Y-m-d G:i:s,strtotime($somedate. .$sometime. .$am_or_pm));

Webmaster Forum

Re: Php date create code
« Reply #1 on: August 16, 2011, 10:20:33 PM »