Syntax
date(‘d-m-y h:i:s’);
Example
<?php
echo “This is my Current date and time:”;
$myCurrentDateTime = date(“d-m-y h:i:s”);
echo $myCurrentDateTime;
?>
For more information about the date function please see the PHP manual.
date(‘d-m-y h:i:s’);
<?php
echo “This is my Current date and time:”;
$myCurrentDateTime = date(“d-m-y h:i:s”);
echo $myCurrentDateTime;
?>
For more information about the date function please see the PHP manual.
Away Some Article is an experienced writer who has written a plethora of articles, based on technology. Her extensive knowledge about Technology is evident from the articles, written in this blog. you need submit a guest post?, then contact us
Example: <?php $myOriginalDate = "2010-03-21"; $myNewDate= date("d-m-Y", strtotime($myOriginalDate)); echo ""My new date is: ".$myNewDate; ?> For more information about the...
Example: <?php $myOriginalDate = "2022-01-01"; $myNewDate = date("d-m-Y", strtotime($myOriginalDate)); echo "My new date is: ".$myNewDate; ?> For more information about...
if (date('H') < 16) { $check4pm = true; } For more information about the date function please see the PHP manual....
Submit A Guest post | Away Some Article & Blog
Follow us
Copyright © 2023 Away Some Article. All rights reserved.