Verify the sequence of Time in JavaScript Selenium I have a list of time as folllowing, ‘a day ago, 10 days ago, 3 months ago, 6 months ago’.