<?php

    $input_string = "yes today is 2013-10-24";
    if(preg_match("/\d{4}-\d{2}-\d{2}/", $input_string, $match))
    {
    	print_r($match);
    }
    else
    	echo "not matched";