Proper date filtering
Proper date filtering
CSV writing stuff