So your CSV looks like this?
somedata;3-Mar-18
otherdata;Mar-18
moredata;3-Mar-18
Then your rdate result at the end should be right and the tag is justified, isn't it? I mean, one of the two filters would have to fail because either the first one is successful and the second is trying to parse a date time object which it cannot parse or the first one doesn't find the right date format and the second one gets it right?
When I try out your configuration, I get "rdate" => 2018-03-02T23:00:00.000Z and "rdate" => 2018-02-28T23:00:00.000Z. (March was UTC+1 for where I live, so I guess that makes sense).
If you do not want to get that tag, you will probably have to check the date format with a regex first.
if([rdate] =~ /^\d{1,2}-[a-zA-Z]{3}-\d{2}$/) {
...
}
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.