Using Calendar as filter in header

Hello

I would like to use dhtmlxCalendar in my header section as a filter. I read something about “filterBy()” Method but i really don’t know how i can realize that.

Is there any understandable example please? Would be really nice.

Thank you in advance and best regards
Oliver