Added possibility to use Date and Date/Time dynamic fields as restrictions in statistics.