I have a timeInMillis
value, which I know I can get a Date
from with something like;
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
String dateString = formatter.format(new Date(dateInMillis)));
I'm using DataBinding
to populate a RecyclerView
. I am also aware that I can manipulate strings when using DataBinding
with something like this;
android:text='@{String.format("%.1f", example.double)}'
However, I cannot work out how to populate the TextView
with a formatted Date
from my timeInMillis
value.