PDA

View Full Version : Date and time by PHP



martin8411
07-22-2011, 04:34 AM
Date and time by PHP

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?





<?php
date_default_timezone_set('UTC');
echo date("l");
echo date('l jS \of F Y h:i:s A');
echo "July *, 2000 is on a " . date("l", mktime(0, 0, 0, 7, *, 2000));
echo date("DATE");
echo date(DATE_ATOM, mktime(0, 0, 0, 7, *, 2000));
?>

shine01
06-25-2012, 12:33 AM
you can enter in string form

sea queen
07-19-2012, 01:31 AM
I have no idea about php if you have any knowledge tell me.

freeseofsd
07-20-2012, 02:11 AM
i know some php but i am not like php

lennonrowen
08-13-2012, 05:53 AM
I think PHP is a server side language. It does not have any UI so that user could pick date. You have to use javascript libraries like jquery.

peter10
08-17-2012, 05:56 AM
Dates are so much part of everyday life that it becomes easy to work with them without thinking. PHP also provides powerful tools for date arithmetic that make manipulating dates easy.