Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

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 become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

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