Answer the question
In order to leave comments, you need to log in
What type of data should be passed to the custom date field ( amocrm API)?
Unable to transfer data.
I tried to send Timestamp (time interval from 1970-01-01, in Sharp it is DateTime.UtcNow) - I get 400 (Bad request). I tried to pass a string date, as in our api - i.e. A string with a date of the format YYYY-MM-DDThh:mm:ss - 400. I probably tried all the formats that came to mind, it's still 400.
What I send,
timestamp (DateTime. UtcNow):
timestamp (string):
field where I pass:
Answer the question
In order to leave comments, you need to log in
As a result, took long.
long unixSeconds = DateTimeOffset.Now.ToUnixTimeSeconds();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question