i have two time values as give below
$time = 06:58:00; $time2 = 00:40:00;
I am doing this for calculating the appointments and available
If you're build those time strings from a database before, you'd probably want to rebuild them to something like this:
$time = "00:06:58"; $time2 = "40 minutes"; $timestamp = strtotime($time." +".$time2); $endTime = date("d.m.Y H:i:s", $timestamp);