Format sensor row timestamp

Format a date with different strings depending on how close to today
the date is.