Course contentsShow
JavaScript
Lesson 1656 of 2,72335. Standard Library and Built-insPro lesson

Formatting Relative Time Values

Use the format method to convert numeric values and units into localized relative time strings like 'in 3 days'.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.