I want to get the current time and date of the device on my android app, but without any punctuation marks.
I mean like:
05112016
and
1946
How can I do that on my android app?
EDIT 1#: The question isn't a duplicate, since the answer in the suggested duplicate isn't what I'm asking. When I run the code from the answer and delete any punctuation marks I get "Nov52016101232" instead of what I want which is "05112016101232".