note 59874 deleted from function.strtotime by nlopess
| From: | nlopess@php.net | Date: | Mon, 19 Dec 2005 00:05:12 +0000 |
| Subject: | note 59874 deleted from function.strtotime by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100391@lists.php.net to get a copy of this message | ||
Note Submitter: Joseph B.
----
This is a simple example of the function. Offcourse you will always have to run a check on the input
:)
<?php
$input = "2005-12-19";
$unixtimestamp = strtotime($input);
$output = date("d-m-Y",$unixtimestamp);
echo "<b>Input:</b> " . $input . "<br />";
echo "<b>Unix Timestamp:</b> " . $unixtimestamp . "<br />";
echo "<b>Output:</b> " . $output;
?>