Representation of custom date field from the query in X-axis

Hi,

I have a prometheus metrics query which gives me results with the date field as one of the fields. Can I assign this field as the x-axis for the graph panel? If not is there any other way like date field from Postgres DB queries to achieve this result?