Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Acquiring Date Information with getdate()

Tue Oct 28, 2008 12:05 am

Code:

<html>
<head>
<title>Acquiring date information with getdate()</title>
</head>
<body>
<?php
$date_array
= getdate();
foreach (
$date_array as $key => $val ){
    print
"$key = $val<br>";
}
?>
<hr>
<?
print "Today's date: $date_array[mday]/$date_array[mon]/$date_array[year]<p>";
?>
</body>
</html>




Post a reply
  Related Posts  to : Acquiring Date Information with getdate()
 Want start and end date of a month from current date     -  
 Formatting a Date with date()     -  
 get next date by next day     -  
 how can we get browser information in jsp?     -  
 Get Php environment information     -  
 information about netbeans IDE     -  
 information about database     -  
 Date in Java     -  
 How To Increment Date In JSP?     -  
 String to sql.Date     -  

Topic Tags

PHP Date