I am ingesting some sql queries via the metricbeat sql module, including date/time fields.
I would like to use these fields on a Lens graph, but cannot as they are ingested as a string format.
Is there any way to get Kibana to recognise that these are date/time fields which can be used to graph on in a similar way i can with timestamp field?
As mentioned at similar question posted a few days ago, you can use runtime fields in Kibana through the Create field option in Data Views where you can use Painless to interact with your data to format a date.

If you want to do that at ingestion time you can set up an ingest pipeline to generate your date fields using also Painless.
Take a look to this guide with plenty of examples on how to work with date and time with Painless. You are probably interested in the first section about parsing strings into date & time objects.
