Adding DateTime fields to pySearchWorkParams in Elastic Search

Please let me know If anyone customized pySearchWorkParams by adding DateTime fields with greater than and less than criteria for elastic search (Ex. ResolvedDateTime >)

Also need to know how to add AND condition for the same field, if we have to search for a date range.

Tried below and it works

.pyParams().pyName = “pxCreateDateTime”

.pyParams().pyValue = “>20201223”

Next step

.pyParams().pyName = “& pxCreateDateTime”

.pyParams().pyValue = “<20201223”