Included replace function for "date" fields, needed for creatig filters ...

...like "previous month"....

Included replace function for "date" fields, needed for creatig filters like "previous month"....

It was just defined for "datetime", but is also needed for "date"