Skip to main content
5-Regular Member
January 30, 2017
Solved

Syntax to query DateTime fields?

  • January 30, 2017
  • 1 reply
  • 4257 views

I'm trying to query a DateTime field in a DataTable.  A filter like

{ "filters": { "type": "GT", "fieldName": "endTime", "value": "2017-01-30 00:00:00" } }

does not seem to work.  What is the syntax to find all rows after a certain date?

Best answer by chmaloof

Figured it out.  It looks like the query value is a timestamp in milliseconds.

1 reply

chmaloof5-Regular MemberAuthorAnswer
5-Regular Member
January 30, 2017

Figured it out.  It looks like the query value is a timestamp in milliseconds.

1-Visitor
January 30, 2017

Hi Chris,

Yes, from the back-end side the DateTime property is stored in the form of milliseconds. Not only for query purposes.