Date range in a Pimcore Object

Hi everybody.
I would like to know if there’s a way in Pimcore 6 to change the date data component in order to insert a date range instead of a date/month/year date.
For example I would need to insert the whole year 2013 or the range 2000 - 2014 or 1 January 2011 - 2 august 2012.

Did anybody ever had the same need?


As far as I can tell, there’s only three attributes which are related to time which you can use: Date, Time, and Date and Time.

So, your best option would be to have two attributes: DateFrom and DateTo, which you can then set to the range you need.

There is an option of creating your own attribute, say, DateRange, but I think it’s overkill for what you’re trying to accomplish.

Database-wise, you’ll still need two timestamps in two columns, so two attributes are the best course of action.

Thanks. It’s a good idea. I think I’ll go with that.