0
我有一个自定义类型,其中一些字段是cli:date_created
。此属性的类型是Date
。用cmis在自定义属性类型中插入“日期”日期
当我尝试设置此字段(使用php)时,我得到Argument of type "string" given but argument of type "\DateTime" was expected."
。但是我给了一个日期而不是一个字符串。
'cli:date_created' => date('d/m/Y',strtotime($resultado[0]['fecha_alta'])),
为了插入日期我需要做些什么?因为我不想在此字段中将日期类型更改为字符串。