text: import { format, formatDistanceToNow } from 'date-fns';
  
  // ----------------------------------------------------------------------
  
  export function fDate(date) {
    return format(new Date(date), 'dd MMMM yyyy');
  }
  
  export function fShortDate(date) {
    return format(new Date(date), 'MM.dd HH:mm');
  }
  
  export function fDateTime(date) {
    return format(new Date(date), 'MM.dd HH:mm');
  }
  
  export function fDateTimeSuffix(date) {
    return format(new Date(date), 'dd/MM/yyyy hh:mm p');
  }
  
  export function fToNow(date) {
    return formatDistanceToNow(new Date(date), {
      addSuffix: true
    });
  }
  