aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/utils.ts')
-rw-r--r--client/src/app/shared/utils.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts
new file mode 100644
index 000000000..1dd6f96f0
--- /dev/null
+++ b/client/src/app/shared/utils.ts
@@ -0,0 +1,12 @@
1import { DatePipe } from '@angular/common';
2
3export class Utils {
4
5 static dateToHuman(date: String) {
6 return new DatePipe('en').transform(date, 'medium')
7 }
8
9 static getRowDeleteButton() {
10 return '<span class="glyphicon glyphicon-remove glyphicon-black"></span>';
11 }
12}