public static string ToPrettyDateString(this DateTime d) { TimeSpan ts = DateTime.Now.Subtract(d); return PrettyDateCache.ToPrettyDateString(ts); }
public static string ToPrettyDateString(this DateTimeOffset d) { TimeSpan ts = DateTimeOffset.Now.Subtract(d); return(PrettyDateCache.ToPrettyDateString(ts)); }