How to search records by date in the JS SDK?

How to search records by date in the JS SDK?

Does anyone know if it's possible to search records within a date range via the JS SDK?

the COQL query I have working is (changed for legibility) :
  1. SELECT Name FROM Leads where (Created_Time >= fromDateTime and Created_Time <= toDateTime and Resource = resourceID)
I'd like to be able to execute this same query via the JS SDK but this doesn't work:
  1. ZOHO.CRM.API.searchRecord({Entity:"Leads",Type:"criteria",Query:"((Created_Time >= fromDateTime and Created_Time <= toDateTime and Resource = resourceID))"})
  2. .then(function(data){
  3.     console.log(data)
  4. })

Looking through the docs at:
https://s3-us-west-2.amazonaws.com/zohocrm-widget/help/v0.9.4/ZOHO.CRM.API.html#.searchRecord

there doesn't seem to be a way to search within a date/time fields?