tags:

views:

154

answers:

1

I'm trying to set the post_date of a blog post to Wordpress via XMLRPC.

I'm sending the data as a string:

$pubdate = '2010-04-08 13:46:43';

'post_date'=>$pubdate,

It appears 'post_date' is correct?

I also found this post losely related to the issue: http://wordpress.org/support/topic/330597

Can anyone suggest how I would post the date as: dateTime.iso8601

A: 

Have you tried this ?

$pubdate = date('c',strtotime('2010-04-08 13:46:43'));

http://www.php.net/manual/en/function.strtotime.php

http://www.php.net/manual/en/function.date.php

Benjamin Delichère