<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/> </head> <body> <nav class="navbar navbar-default"> <div class="container-fluid"> <a class="navbar-brand">Sourcecodester</a> </div> </nav> <div class="col-md-3"></div> <div class="col-md-6 well"> <h3 class="text-primary">PHP - Get The Different Between Two Dates</h3> <hr style="border-top:1px dotted #ccc;"/> <div class="col-md-2"></div> <div class="col-md-8"> <form action="" method="POST"> <div class="form-group"> <label>Start Of Date</label> <input type="date" name="start" class="form-control"/> </div> <div class="form-group"> <label>End Of Date</label> <input type="date" name="end" class="form-control"/> </div> <button class="btn btn-primary btn-block" name="enter">Enter</button> </form> <?php include 'calculate_dates.php'?> </div> </div> </body> </html>
<?php function differenceIn_TwoDates($startOf_Date,$endOf_Date){ return $difference_Dates; } echo "<center><h3>There are <i style='color:red;'>".$calculation."</i> Hours Different Between Two Dates</h3></center>"; } ?>