How to compare dates without timestamp

This is the best documentation I can quickly find...

%{+YYYY.MM.dd}

Sets the third part of the name to a date based on the Logstash @timestamp field.