On the web site I'm working with the dates object is created are presented in format like:
Jun 8th 2022 16:31:22
I need to validate the creation date is within the last 5 minutes.
So, I can get the current local date / time and then compare it with the date parsed from string got from the site.
But I can't find the date format matching the 8th
day of month.
Without it I would use format like this:
SimpleDateFormat sdf = new SimpleDateFormat("MMM DD YYYY hh:mm:ss");
And then compare these dates but how can I handle xth
day of month?