I think that 2021-04-17 is actually parsed as 2021-04-17T00:00:00.
When you include it, it does not mean that any second after 00:00:00 will be matching.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.