I need to display timestamp in hh:mm format along with a toasted text. I have tried adding +DateUtils.HOUR_IN_MILLIS
which isnt working for me
Toast savedToast = Toast.makeText(getApplicationContext(),
"Progress saved at"+DateUtils.HOUR_IN_MILLIS,Toast.LENGTH_SHORT);
savedToast.show();
Edit: learnt from the answers that +Calendar.getInstance().getTime()
does the job. Thanks. All the answers work great.