                     # overflowX: 'hidden'
                     WebkitAppRegion: 'drag'
                 ]
-                for {active, delta, task, date} in final_entries
+                form {},
+                    "from "
+                    input
+                        type: 'date'
+                        name: 'date_value'
+                        defaultValue: f_min_date_from
+                        min: f_min_date_from
+                        max: f_max_date_from
+                        onChange: (e)=>
+                            e.target.value = e.target.value or f_min_date_from
+                            @setState {date_from: Date.parse(e.target.value)}
+                    "to"
+                    input
+                        type: 'date'
+                        name: 'date_value'
+                        defaultValue: f_max_date_to
+                        min: f_min_date_to
+                        max: f_max_date_to
+                        onChange: (e)=>
+                            e.target.value = e.target.value or f_max_date_to
+                            @setState {date_to: Date.parse(e.target.value)}
+
+                for {active, delta, task, date} in final_entries when @state.date_to + 24*60*60*1000 >= date >= @state.date_from
                     div
                         className: 'entry'
                         style: [

            last_valid_task = null
            last_task = null

            # Filling undefined active task and combining entries with adjacent with same task
            for {active, task, date}, i in log.entries
                new_entry = false
                if active
                    task = log.get_next_task i
                if active != last_was_active or last_task != task

                        last_task = task
                    final_entries.push {active, task, date}


            # Calculating duration
            for e,i in final_entries
                next_entry = final_entries[i+1]
                if next_entry?
                    e.delta = next_entry.date - e.date
                else
                    e.delta = date_now - e.date

            first_date = final_entries[0].date
            min_date_to = Math.max first_date, @state.date_from
            max_date_from = Math.min date_now, @state.date_to

            f_min_date_from = new Date(first_date).toJSON().split('T')[0]
            f_max_date_from = new Date(max_date_from).toJSON().split('T')[0]
            f_min_date_to = new Date(min_date_to).toJSON().split('T')[0]
            f_max_date_to = new Date(date_now).toJSON().split('T')[0]

            div
                id: 'main_container'
