Goal
The aim of this article is to demonstrate how to index DateTime fields so that their type is properly parsed passed to the Hawksearch API.
...
Navigate to Administration → Search indexes (your-site-domain/Sitefinity/Administration/Search)
Open the index for editing
Under Advanced → Additional fields for indexing add the fields e.g. Lastmodified, DateCreated
Save the changes
...
In order to use you custom search service instead of the built-in one please refer to this documentation:
Register custom search service
Check field type in Hawksearch
After you have indexed open your Hawksearch dashboard and check the type of the field you have created. It should look like this :
...