note 94012 deleted from book.datetime by peehaa
| From: | peehaa@php.net | Date: | Sun, 28 Apr 2019 10:33:18 +0000 |
| Subject: | note 94012 deleted from book.datetime by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210800@lists.php.net to get a copy of this message | ||
Note Submitter: kapoor_rajiv at hotmail dot com
----
We can also get the submitted datetime (e.g. 2009-11-06 07:03:41) using the following:
<?php
$DateOfRequest = date("Y-m-d H:i:s", strtotime($_REQUEST["DateOfRequest"]));
?>
Or another good example of getting DateTime:
<?php
$DateOfRequest = date("Y-m-d H:i:s",
mktime($_REQUEST["Hour"],$_REQUEST["Min"],$_REQUEST
["Sec"],$_REQUEST["Month"],$_REQUEST["Day"],$_REQUEST["Year"]));
?>