Hi all,
I have two datetime as string in variable how i can subtract to get the different in seconds?
$startdat = "2007-11-17 12:50:22";
$stopdat = "2007-11-17 12:53:22";
$result = $stopdat - $startdat;
But it is not working, can you guys please help to get the differences in sec?