OVT-7973: Use generics and remove dead code
OVT-7973: use equals for comparing integers
OVT-7973: SimpleDataFormat is not thread safe

Create new instance from it instead. Changed visibility from public to
private.