How to Convert From YYYY-MM-DD to MM-DD-YYYY in PHP
Example: <?php $myOriginalDate = "2010-03-21"; $myNewDate= date("d-m-Y", strtotime($myOriginalDate)); echo ""My new date is: ".$myNewDate; ?> For more information about the...
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...
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; ?>...
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.