异常:DateTime::__construct():无法解析位置 0 处的时间字符串 (17/06/2014) (1):意外字符 +

Exception: DateTime::__construct(): Failed to parse time string (17/06/2014) at position 0 (1): Unexpected character +

请处理我的问题 -

An exception has been thrown during the rendering of a template ("DateTime::__construct(): Failed to parse time string (17/06/2014) at position 0 (1): Unexpected character") in ComAkSolutionsSmsUserBundle:Admin\AcademicYear:manageAcademicYear.html.twig at line 16.

<script type="text/javascript">
    $(function () {
        $('#datetimepicker_1').datetimepicker({
            viewMode: 'years',
            format: 'DD/MM/YYYY'
        });
        $('#datetimepicker_2').datetimepicker({
            viewMode: 'years',
            format: 'DD/MM/YYYY'
        });    

    });
</script>

查找 http://php.net/manual/en/datetime.construct.php - 您的错误消息是 PHP 错误消息,您的代码片段来自 JavaScript。您也必须将格式正确的时间字符串传递给 php-函数。