<?php

echo date('Y-m-d', strtotime('-18 year'));