You have a "dot mess".
You can concatinate PHP variables and strings like
<?pho echo 'string' . $var . 'string' . $var1 . $var2; // and so on ?>
So correct solutions would be
<?php
echo '<h2>Date ' . $day . '/'. $month .'/' . $year .'<br></h2>';
echo '<h2>Date ' , $day , '/', $month ,'/', $year ,'<br></h2>';
echo "<h2>Date $day/$month/$year<br></h2>";
echo "<h2>Date {$day}/{$month}/{$year}<br></h2>";
?>
You can even use commas , for echoing strings and variables that's a bit faster. Cause PHP does not concatinate all parts together to a single string and echos it but echos every part separatly (so less operations are needed).
Note that if you put a string in double quotes " you can use $var or {$var} inside the string cause PHP is looking vor PHP variables inside a double quoted string and replaces them by their containing value.
But the fastest solution is the , separated version.
or
As lonesomeday mentioned there is also a C like solution possible in PHP
<?php printf('<h2>Date %s/%s/%s<br></h2>', $day, $month, $year); ?>
or (but not recommended by me)
The complicated and none readable version
<h2>Date <?php echo $day; ?> / <?php echo $month; ?> / <?php echo $year; ?><br></h2>
And the shorted version of the above code (just for completeness, short tags have to be enabled in PHP versions lower than 5.4 to work)
<h2>Date <?= $day; ?> / <?= $month; ?> / <?= $year; ?><br></h2>
For even more information about string concatination read the offical PHP doc site about String Operations.