Technically, yes. A regular histogram
bucket will work with dates. However,
it is not calendar-aware. With the date_histogram
, you can specify intervals
such as 1 month
, which knows that February is shorter than December. The
date_histogram
also has the advantage of being able to work with time zones,
which allows you to customize graphs to the time zone of the user, not the server.
The regular histogram will interpret dates as numbers, which means you must specify intervals in terms of milliseconds. And the aggregation doesn’t know about calendar intervals, which makes it largely useless for dates.