Create your account

Already have an account? Login here

Create account

81. Approximating Time Using Android DateUtils

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to buy this course, or login to your account to view this lesson.

Alright, buy it for $25 Or login to your account if you purchased already.

This video shows how to approximate date and time using the DateUtils class in Android. The DateUtils class contains various date-related utilities for creating things like elapsed time and date ranges, strings for days of the week and months, and AM/PM text etc. Use the DateUtils.getRelativeTimeSpanString method to get time approximated and displayed in a simplified format which the user can easily understand.

Course Cirriculum