odata, date in the query

1C:Enterprise platform integration capabilities and techniques

#1
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Oct 20, 2014
Company:

Hi,

how can i transfer date in the query?

$filter=Date eq '20150918T11:56:57'

 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Oct 20, 2014
Company:

I figured

 
#3
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Maxim Makarov!

Would you please share your solution? This could help other developers in future.

 
#4
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Oct 16, 2018
Company:

You can use JSON function WriteJSONDate(<Date>, <Format>, <DateWritingVariant>)
Parameters:
<Date> (required)
Type: Date.
Date to be transformed into JSON format.
<Format> (required)
Type: JSONDateFormat.
Recorded date format.
<DateWritingVariant> (optional)
Type: JSONDateWritingVariant.
Available options for writing JSON dates.
Default value: LocalDate.
Returned value:
Type: String.

 
Subscribe
Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.