Hi Team,
Currently, we have a requirement to show only the last 30 days of released versions only, if any version does not contain the release date then ignore it.
I am able to get the version release date in the yyyy-MM-dd HH:mm:ss for example release date: 2018-09-24 00:00:00.0 format but as i need to compare it with yyyy-MM-dd format so i am unable to do so and getting the below error.
java.lang.IllegalArgumentException: Cannot compare java.sql.Timestamp with value '9/24/18 12:00 AM' and java.lang.String with value '2021-05-15' at Script2778$_run_closure1.doCall(Script2778.groovy:22) at Script2778.run(Script2778.groovy:17) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date ... 2 more
Any help will be appreciated.
Thanks