Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > odata, date in the query

Forum

Search UsersRules
odata, date in the query
#1
Just came
Points:: 0
Joined:: Oct 20, 2014

Hi,

how can i transfer date in the query?

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

Profile
#2
Just came
Points:: 0
Joined:: Oct 20, 2014

I figured

Profile
#3
Guest
Points::
Joined::

Hello, Maxim Makarov!

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

Profile
#4
Just came
Points:: 0
Joined:: Oct 16, 2018

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.