The Date class is used to generate a formatted date string with the option of returning a "time ago" string for dates that occurred within 24 hours, or an "on [date]" string for dates that fall outside the 24 hour period. For example: 4 hours ago, 16 minutes ago, on February 13th, etc.
The format of the "on [date]" string is determined by an argument passed using the PHP date format.
print Date::timeAgo(strtotime($strDate), 24, 'M d, y @ g:ia');