How To Show The Time And Date Saved In My Database To The User According To Their Local Timezone? Please See Details
I'm developing an app in which I'm saving the date and time in Firebase and then retrieving it for the user to see. What I want is I want user to see that time and date according t
Solution 1:
Try this:
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
simpleDateFormat.setTimeZone(TimeZone.getDefault());
Date myDate = simpleDateFormat.parse("DateAndTimeToBeProcessed");
Post a Comment for "How To Show The Time And Date Saved In My Database To The User According To Their Local Timezone? Please See Details"