Consider the following code.
<html>
<form method="POST">
<input type="text" name="name1">
<input type="date" name="date1">
<input type="submit" name="sub" value="sub">
</form>
</html>
<?php
if(isset($_POST['sub']))
{
echo $_POST['date1'];//line 11
echo "<br>";
echo $_POST['name1'];
}
?>
line 11 display the date i have selected.But i want to echo the day,month,year separately. I am new to php. Help me please.Thanks in advance for your help.