How can I convert a date format from my plugin so it saves correctly?
After $entry-&gt;setContentFromPost($fieldsLocation); you should be able to add another line to explicitly set your calculated date.

$entry-&gt;setContent(array('fieldName' =&gt; $myDate));


Then just proceed with saving the entry as normal.