aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/utils.ts
blob: 7c8ae2e3e5e664c135925c38b801fe3953ad0afc (plain) (tree)
1
2
3
4
5
6
7
8
                                          


                    
                                   
                                                       
   
 
import { DatePipe } from '@angular/common'

export class Utils {

  static dateToHuman (date: Date) {
    return new DatePipe('en').transform(date, 'medium')
  }
}