added support for date based partition