Issue creating timeslip due to error: "dated_on is not valid"

I’m trying to go through some research for a client involving creating some
projects/tasks/timeslips through a middle-man web interface. My main issue
has been to do with the examples in the docs as it’s not very clear what
the API needs and the errors the API gives are quite vague.

I’ve got the following error when I tried to create a timeslip: “dated_on
is not valid” but I’ve tried all kinds of formats such as;

09 Feb 2015
09/02/2015
02/09/2015
09 02 2015
2015 02 09
2015/02/09T12:00:12Z

etc and nothing seems to work.

Can you please explain what I’m doing wrong or point me towards some
documentation which explains what format the API expects to receive?

(Im using PHP and https://github.com/thoughtco/Freeagent-PHP/ to interact
with the API)

Trial and error succeeded:

php function to get date format: date(‘Y-m-d\TH:i:sO’,
strtotime($date_given))

format looks like this: 2012-10-16T00:00:00+00:00

written: {year}-{month}-{day}T{hour}:{minute}:{seconds}{
GMT-offset}

GMT-offset = +{hour}{minute} e.g “+0300”
Note: GMT can support the format like “+03:00” (colon included)On Tuesday, February 10, 2015 at 9:37:14 AM UTC, n…@pcmmedia.eu wrote:

I’m trying to go through some research for a client involving creating
some projects/tasks/timeslips through a middle-man web interface. My main
issue has been to do with the examples in the docs as it’s not very clear
what the API needs and the errors the API gives are quite vague.

I’ve got the following error when I tried to create a timeslip: “dated_on
is not valid” but I’ve tried all kinds of formats such as;

09 Feb 2015
09/02/2015
02/09/2015
09 02 2015
2015 02 09
2015/02/09T12:00:12Z

etc and nothing seems to work.

Can you please explain what I’m doing wrong or point me towards some
documentation which explains what format the API expects to receive?

(Im using PHP and GitHub - thoughtco/Freeagent-PHP: A simple PHP wrapper for the FreeAgent API to interact
with the API)