I have a Date in this format:
Tue Mar 10 00:00:00 UTC 1987
It is stored in a Object Date.
Object tmp = solrDoc.getFieldValue("date_from")
I would like to convert it to a strictly numeric format, without the hours, timezone etc., like
10.03.1987
This is what I tried so far:
DateFormat date = new SimpleDateFormat("dd.MM.yyyy");
date.format(tmp);
It returns:
"java.text.SimpleDateFormat@7147a660"