Date/Time format when passing data to API

Date/Time format when passing data to API

Hi

I am trying to create a worklog via the API, and it is creating fine.  However, I cannot work out how to convert a datetime value to the numeric value that the API expects.

In the one example I have found on how to create a worklog, the executed time field is: 1350292747707
When I view this worklog in ME, it shows a date of October 15th 2012, 10:19am.

How do I convert my date/time so it creates a number that ME API understands?????

I have tried passing the datetime in like this: 01-12-2015 09:00 but this didn't work
I tried converting my DateTime to ticks, but that didn't work either.

By the way - I am looking for a C# answer!

HELP!!!
                New to ADManager Plus?

                  New to ADSelfService Plus?