-
Date and time by PHP
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?
[code]<?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));
?>[/code]
-
you can enter in string form
-
I have no idea about php if you have any knowledge tell me.
-
i know some php but i am not like php
-
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.
-
Date and time by PHP
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.