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


                    

                                                       

   

                                                                             

   
import { DatePipe } from '@angular/common'

export class Utils {

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

  static getRowDeleteButton () {
    return '<span class="glyphicon glyphicon-remove glyphicon-black"></span>'
  }
}