In this video I'm showing a function which formats a date and time strings into hours if the time is for less than 24 hours and date for more than 24 hours.Gist url https://gist.github.com/InterTuts/c515c060cb577885baf6119ddb0bbd68