$currentYear=date("Y");//2019
<?php echo date("Y"); ?>
// get current year using php <?php echo date("Y"); ?>
$year = date("y",strtotime($mydate));