cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the date of a d:date property?

hbf
Champ on-the-rise
Champ on-the-rise
Hi PHP users,

I have a property of type d:date whose value I want to set. How can I do this from PHP?

$node->my_date = 'Sat, 12 Aug 1995 13:30:00 GMT';

does not work (i.e., results in a SOAP exception). Is there a special construction needed?

Many thanks,
Kaspar
1 REPLY 1

hbf
Champ on-the-rise
Champ on-the-rise
After having found out how to debug the Alfresco PHP I was able to tackle this.

You have to use dates of the form

1958-08-12T00:00:00.000Z

Futher information can be found in file ISO8601DateFormat.java in the Alfresco SVN repository.

Hope this helps others.