Have a function that creates a time-only Date object. (why this is required is a long story which is irrelevant in this context but I need to compare to some stuff in XML wo
You can use "sychronized" block to make it thread safe. Something like:
synchronized (lastUpdatedFormat) { date = lastUpdatedFormat.parse(lastUpdatedFormat.format(currentDate)); }